Skip to content
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.

Commit

Permalink
Merge branch 'pzduniak/pin-go-version'
Browse files Browse the repository at this point in the history
  • Loading branch information
thrawn01 committed May 17, 2022
2 parents 61db610 + 4a4bb1f commit 1858f09
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/on-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Update 'version' file
run: echo "${{ github.event.release.tag_name }}" > version

# Buildx Needs QEMU
- name: Set up QEMU
uses: docker/setup-qemu-action@v1

# We use Buildx so we can take advantage of the caching
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
Expand All @@ -39,8 +39,9 @@ jobs:
build-args: |
VERSION=${{ github.event.release.tag_name }}
platforms: linux/amd64,linux/arm64
push: true

pull: true
push: true

# Commit the updated 'version' file
- name: Commit changes
uses: EndBug/add-and-commit@v7
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build image
FROM --platform=$BUILDPLATFORM golang:1.17 as build
FROM --platform=$BUILDPLATFORM golang:1.17.9 as build
ARG BUILDPLATFORM
ARG TARGETPLATFORM
# https://github.com/docker/buildx/issues/510#issuecomment-768432329
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile-cli
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build image
FROM --platform=$BUILDPLATFORM golang:1.17 as build
FROM --platform=$BUILDPLATFORM golang:1.17.9 as build
ARG BUILDPLATFORM
ARG TARGETPLATFORM
# https://github.com/docker/buildx/issues/510#issuecomment-768432329
Expand Down

0 comments on commit 1858f09

Please sign in to comment.