Browse Source

Add on push master

master
nolim1t 5 years ago
parent
commit
717fe27dd7
No known key found for this signature in database GPG Key ID: F6287B82CC84BCBD
  1. 9
      .github/workflows/on-push.yml

9
.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" .

Loading…
Cancel
Save