From c88ff44518bd8e26121d861f7172da0d0ceb2928 Mon Sep 17 00:00:00 2001 From: Yusuke Kuoka Date: Thu, 18 Feb 2021 08:42:24 +0900 Subject: [PATCH] Fix wip.yml workflow for building controller canary tags (#323) In #306 we seem to have accidentally updated a wrong workflow, which was for runner builds. This updates the one for the controller. Resolves #302 --- .../workflows/build-and-release-runners.yml | 23 +------------------ .github/workflows/release.yml | 1 + .github/workflows/wip.yml | 6 +++-- 3 files changed, 6 insertions(+), 24 deletions(-) diff --git a/.github/workflows/build-and-release-runners.yml b/.github/workflows/build-and-release-runners.yml index 86bbe880..93cd06eb 100644 --- a/.github/workflows/build-and-release-runners.yml +++ b/.github/workflows/build-and-release-runners.yml @@ -16,8 +16,6 @@ on: - runner/dindrunner.Dockerfile - runner/entrypoint.sh - .github/workflows/build-runner.yml - release: - types: [published] jobs: build: @@ -57,31 +55,12 @@ jobs: username: ${{ github.repository_owner }} password: ${{ secrets.DOCKER_ACCESS_TOKEN }} - # Considered unstable builds - # Mutable (no sha) and immutable (include sha) tags are created, see Issue 285 and PR 286 for why - - name: Build and push canary builds + - name: Build and Push uses: docker/build-push-action@v2 with: context: ./runner file: ./runner/${{ matrix.dockerfile }} platforms: linux/amd64,linux/arm64 - push: ${{ github.event_name != 'pull_request' && github.event_name != 'release' }} - build-args: | - RUNNER_VERSION=${{ env.RUNNER_VERSION }} - DOCKER_VERSION=${{ env.DOCKER_VERSION }} - tags: | - ${{ env.DOCKERHUB_USERNAME }}/${{ matrix.name }}:v${{ env.RUNNER_VERSION }}-canary - ${{ env.DOCKERHUB_USERNAME }}/${{ matrix.name }}:v${{ env.RUNNER_VERSION }}-canary-${{ steps.vars.outputs.sha_short }} - - # Considered stable builds - # Mutable (no sha) and immutable (include sha) tags are created, see Issue 285 and PR 286 for why - - name: Build and push release builds - uses: docker/build-push-action@v2 - with: - context: ./runner - file: ./runner/${{ matrix.dockerfile }} - platforms: linux/amd64,linux/arm64 - push: ${{ github.event_name == 'release' }} build-args: | RUNNER_VERSION=${{ env.RUNNER_VERSION }} DOCKER_VERSION=${{ env.DOCKER_VERSION }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a741b6cb..fbdff7ea 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -57,6 +57,7 @@ jobs: platforms: linux/amd64,linux/arm64 push: true tags: | + ${{ env.DOCKERHUB_USERNAME }}/actions-runner-controller:latest ${{ env.DOCKERHUB_USERNAME }}/actions-runner-controller:${{ env.VERSION }} ${{ env.DOCKERHUB_USERNAME }}/actions-runner-controller:${{ env.VERSION }}-${{ steps.vars.outputs.sha_short }} diff --git a/.github/workflows/wip.yml b/.github/workflows/wip.yml index 164f3adf..6061d3af 100644 --- a/.github/workflows/wip.yml +++ b/.github/workflows/wip.yml @@ -30,11 +30,13 @@ jobs: username: ${{ github.repository_owner }} password: ${{ secrets.DOCKER_ACCESS_TOKEN }} + # Considered unstable builds + # See Issue #285, PR #286, and PR #323 for more information - name: Build and Push uses: docker/build-push-action@v2 with: file: Dockerfile platforms: linux/amd64,linux/arm64 push: true - tags: ${{ env.DOCKERHUB_USERNAME }}/actions-runner-controller:latest - + tags: | + ${{ env.DOCKERHUB_USERNAME }}/actions-runner-controller:canary