mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 18:18:55 +00:00
ci: Use the same version of buildx for building, tagging, and merging images (#6066)
In debugging https://firezone.statuspage.io/incidents/3vjmjmbh92mw, we realized that we use potentially different versions of buildx. This PR fixes that.
This commit is contained in:
10
.github/workflows/_build_artifacts.yml
vendored
10
.github/workflows/_build_artifacts.yml
vendored
@@ -78,7 +78,7 @@ jobs:
|
||||
# supports v0.11.6 https://github.com/docker/buildx/blob/b8739d74417f86aa8fc9aafb830a8ba656bdef0e/Dockerfile#L9.
|
||||
# We should for any updates on buildx and on the setup-buildx-action itself.
|
||||
driver-opts: |
|
||||
image=moby/buildkit:v0.13.2
|
||||
image=moby/buildkit:v0.15.1
|
||||
- uses: ./.github/actions/gcp-docker-login
|
||||
id: login
|
||||
with:
|
||||
@@ -257,7 +257,7 @@ jobs:
|
||||
# supports v0.11.6 https://github.com/docker/buildx/blob/b8739d74417f86aa8fc9aafb830a8ba656bdef0e/Dockerfile#L9.
|
||||
# We should for any updates on buildx and on the setup-buildx-action itself.
|
||||
driver-opts: |
|
||||
image=moby/buildkit:v0.13.2
|
||||
image=moby/buildkit:v0.15.1
|
||||
- uses: ./.github/actions/gcp-docker-login
|
||||
id: login
|
||||
with:
|
||||
@@ -372,6 +372,12 @@ jobs:
|
||||
run: ls -R /tmp/digests
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
with:
|
||||
# We are overriding the default buildkit version being used by Buildx. We need buildkit >= 12.0 and currently BuildX
|
||||
# supports v0.11.6 https://github.com/docker/buildx/blob/b8739d74417f86aa8fc9aafb830a8ba656bdef0e/Dockerfile#L9.
|
||||
# We should for any updates on buildx and on the setup-buildx-action itself.
|
||||
driver-opts: |
|
||||
image=moby/buildkit:v0.15.1
|
||||
- name: Build Version Tags
|
||||
run: |
|
||||
set -xe
|
||||
|
||||
16
.github/workflows/_deploy_production.yml
vendored
16
.github/workflows/_deploy_production.yml
vendored
@@ -49,6 +49,14 @@ jobs:
|
||||
id: login-production
|
||||
with:
|
||||
project: firezone-prod
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
with:
|
||||
# We are overriding the default buildkit version being used by Buildx. We need buildkit >= 12.0 and currently BuildX
|
||||
# supports v0.11.6 https://github.com/docker/buildx/blob/b8739d74417f86aa8fc9aafb830a8ba656bdef0e/Dockerfile#L9.
|
||||
# We should for any updates on buildx and on the setup-buildx-action itself.
|
||||
driver-opts: |
|
||||
image=moby/buildkit:v0.15.1
|
||||
- name: Pull and push images
|
||||
run: |
|
||||
set -xe
|
||||
@@ -169,6 +177,14 @@ jobs:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
with:
|
||||
# We are overriding the default buildkit version being used by Buildx. We need buildkit >= 12.0 and currently BuildX
|
||||
# supports v0.11.6 https://github.com/docker/buildx/blob/b8739d74417f86aa8fc9aafb830a8ba656bdef0e/Dockerfile#L9.
|
||||
# We should for any updates on buildx and on the setup-buildx-action itself.
|
||||
driver-opts: |
|
||||
image=moby/buildkit:v0.15.1
|
||||
- name: Pull and push
|
||||
run: |
|
||||
set -xe
|
||||
|
||||
8
.github/workflows/publish.yml
vendored
8
.github/workflows/publish.yml
vendored
@@ -57,6 +57,14 @@ jobs:
|
||||
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
|
||||
echo "major_version=$MAJOR_VERSION" >> "$GITHUB_OUTPUT"
|
||||
echo "major_minor_version=$MAJOR_MINOR_VERSION" >> "$GITHUB_OUTPUT"
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
with:
|
||||
# We are overriding the default buildkit version being used by Buildx. We need buildkit >= 12.0 and currently BuildX
|
||||
# supports v0.11.6 https://github.com/docker/buildx/blob/b8739d74417f86aa8fc9aafb830a8ba656bdef0e/Dockerfile#L9.
|
||||
# We should for any updates on buildx and on the setup-buildx-action itself.
|
||||
driver-opts: |
|
||||
image=moby/buildkit:v0.15.1
|
||||
- name: Pull and push
|
||||
if: ${{ steps.set-variables.outputs.artifact == 'gateway' || steps.set-variables.outputs.artifact == 'client' }}
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user