diff --git a/.github/workflows/on-push.yml b/.github/workflows/on-push.yml index b138c8c..d12d75d 100644 --- a/.github/workflows/on-push.yml +++ b/.github/workflows/on-push.yml @@ -2,7 +2,10 @@ name: Docker build on push env: DOCKER_CLI_EXPERIMENTAL: enabled -on: push +on: + push: + branches: + - master jobs: build: @@ -48,12 +51,12 @@ jobs: restore-keys: | ${{ runner.os }}-buildx- - - name: Build against latest + - name: Build against master 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,linux/arm/v6 \ - --tag ${{ secrets.DOCKER_HUB_USER }}/$DOCKER_HUB_REPO:$SHORTSHA \ + --tag ${{ secrets.DOCKER_HUB_USER }}/$DOCKER_HUB_REPO:master-$SHORTSHA \ --output "type=registry" .