mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-02-24 23:53:01 +08:00
Make the Docker image build version DOCKER_IMAGE_VERSION aware of the configured version in main.go. (#1694)
Fixes #1687
This commit is contained in:
parent
31723ad146
commit
bd048944a3
1 changed files with 2 additions and 1 deletions
|
@ -18,7 +18,6 @@ jobs:
|
|||
|
||||
environment:
|
||||
DOCKER_IMAGE_NAME: stackexchange/dnscontrol
|
||||
DOCKER_IMAGE_VERSION: 3.18.1
|
||||
DOCKER_IMAGE_PLATFORM: linux/amd64,linux/386
|
||||
|
||||
steps:
|
||||
|
@ -36,6 +35,8 @@ jobs:
|
|||
name: Build multi-arch Docker images and push to Docker Hub
|
||||
command: |
|
||||
export DOCKER_CLI_EXPERIMENTAL=enabled
|
||||
export DOCKER_IMAGE_VERSION=$(grep -E "Version *= \"" main.go | awk '{ print $3 }' | tr -d \") >> $BASH_ENV
|
||||
source $BASH_ENV
|
||||
docker context create multi-arch-build
|
||||
docker buildx create \
|
||||
--use multi-arch-build \
|
||||
|
|
Loading…
Reference in a new issue