From 84a0cbee12138cd31f7182646d9c493c68fc29bd Mon Sep 17 00:00:00 2001 From: Evan Feenstra Date: Tue, 15 Dec 2020 10:50:49 -0800 Subject: [PATCH] again --- .github/workflows/docker-build.yml | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index ebc0621..f58f577 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -2,15 +2,10 @@ name: Docker build on push env: DOCKER_CLI_EXPERIMENTAL: enabled -# on: -# push: -# tags: -# - '*' - on: push: - branches: - - master + tags: + - '*' jobs: build: @@ -47,14 +42,15 @@ jobs: key: ${{ runner.os }}-buildx-${{ github.sha }} restore-keys: | ${{ runner.os }}-buildx- - - name: Show set env variables again + - name: Test print env run: | - printf " HEAD_TAG: %s\n" "${{ env.HEAD_TAG }}" + echo $RELEASE_TAG + echo ${{ env.RELEASE_TAG }} - name: Run Docker buildx run: | docker buildx build \ --cache-from "type=local,src=/tmp/.buildx-cache" \ --cache-to "type=local,dest=/tmp/.buildx-cache" \ --platform linux/amd64,linux/arm64,linux/arm/v7 \ - --tag "${{ secrets.DOCKER_HUB_USER }}/sphinx-relay:${{ env.HEAD_TAG }}" \ + --tag "${{ secrets.DOCKER_HUB_USER }}/sphinx-relay:${{ env.RELEASE_TAG }}" \ --output "type=registry" ./