release #30
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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: firecracker | |
| steps: | |
| - uses: actions/checkout@v1 | |
| - name: Set up Go 1.25 | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.25' | |
| id: go | |
| - name: Prepare git | |
| env: | |
| GITHUB_USER: 1gtm | |
| GITHUB_TOKEN: ${{ secrets.LGTM_GITHUB_TOKEN }} | |
| run: | | |
| set -x | |
| git config --global user.name "${GITHUB_USER}" | |
| git config --global user.email "${GITHUB_USER}@appscode.com" | |
| git config --global \ | |
| url."https://${GITHUB_USER}:${GITHUB_TOKEN}@github.com".insteadOf \ | |
| "https://github.com" | |
| - name: Prepare Host | |
| run: | | |
| sudo apt-get -qq update || true | |
| sudo apt-get install -y zip | |
| - name: Print version info | |
| id: semver | |
| run: | | |
| make version | |
| - name: Set up QEMU | |
| id: qemu | |
| uses: docker/setup-qemu-action@v3 | |
| with: | |
| cache-image: false | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Publish to GitHub Container Registry | |
| env: | |
| REGISTRY: ghcr.io/appscode | |
| DOCKER_TOKEN: ${{ secrets.LGTM_GITHUB_TOKEN }} | |
| USERNAME: 1gtm | |
| APPSCODE_ENV: prod | |
| run: | | |
| docker login ghcr.io --username ${USERNAME} --password ${DOCKER_TOKEN} | |
| make release COMPRESS=yes | |
| # - name: Publish to Red Hat Ecosystem Catalog | |
| # env: | |
| # REGISTRY: ghcr.io/appscode | |
| # PFLT_PYXIS_API_TOKEN: ${{ secrets.PFLT_PYXIS_API_TOKEN }} | |
| # run: | | |
| # curl -fsSL -o preflight https://github.com/redhat-openshift-ecosystem/openshift-preflight/releases/latest/download/preflight-linux-amd64 | |
| # chmod +x preflight | |
| # sudo mv preflight /usr/local/bin/preflight | |
| # make docker-certify-redhat | |
| - name: Release | |
| uses: softprops/action-gh-release@v1 | |
| if: startsWith(github.ref, 'refs/tags/') | |
| with: | |
| files: | | |
| bin/ace-darwin-amd64.tar.gz | |
| bin/ace-darwin-arm64.tar.gz | |
| bin/ace-linux-amd64.tar.gz | |
| bin/ace-linux-arm64.tar.gz | |
| bin/ace-windows-amd64.zip | |
| bin/ace-checksums.txt | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |