Skip to content

Update crossplane-runtime #36

Update crossplane-runtime

Update crossplane-runtime #36

Workflow file for this run

name: Release
on:
push:
tags:
- "*.*"
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
build:
name: Build
runs-on: f0
steps:
- uses: actions/checkout@v1
- run: git checkout -b release-${GITHUB_REF_NAME}
- name: Set up Go 1.22
uses: actions/setup-go@v1
with:
go-version: '1.22'
id: go
- name: Set up QEMU
id: qemu
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Prepare Host
run: |
sudo apt-get -qq update || true
sudo apt-get install -y unzip
GOBIN=/usr/local/bin go install golang.org/x/tools/cmd/goimports@latest
# - name: Setup upterm session
# uses: lhotari/action-upterm@v1
- name: Publish to GitHub Container Registry
env:
REGISTRY: ghcr.io/kubedb
DOCKER_TOKEN: ${{ secrets.LGTM_GITHUB_TOKEN }}
USERNAME: 1gtm
APPSCODE_ENV: prod
run: |
docker login ghcr.io --username ${USERNAME} --password ${DOCKER_TOKEN}
make submodules
make generate
make build.all
make publish
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.event.ref, 'refs/tags/') && (contains(github.ref, '-alpha.') || contains(github.ref, '-beta.')) == false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}