Skip to content

Commit d1450d3

Browse files
workflow adjustment
1 parent b1c6f31 commit d1450d3

1 file changed

Lines changed: 11 additions & 4 deletions

File tree

.github/workflows/docker.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
name: docker
22

3-
on:
4-
push:
5-
tags:
6-
- '*'
3+
on: [push, workflow_dispatch]
74

85
jobs:
96
build:
@@ -21,15 +18,25 @@ jobs:
2118

2219
- name: Login to DockerHub
2320
uses: docker/login-action@v2
21+
if: github.ref == 'refs/heads/master' && github.repository == 'kool-dev/pdf'
2422
with:
2523
username: ${{ secrets.DOCKER_USERNAME }}
2624
password: ${{ secrets.DOCKER_PASSWORD }}
2725

2826
- uses: olegtarasov/get-tag@v2.1
2927
id: tagName
3028

29+
- name: Build and export
30+
uses: docker/build-push-action@v3
31+
with:
32+
load: true
33+
tags: |
34+
kooldev/pdf:${{ steps.tagName.outputs.tag }}
35+
kooldev/pdf:1.0
36+
3137
- name: Build and push image
3238
uses: docker/build-push-action@v3
39+
if: github.ref == 'refs/heads/master' && github.repository == 'kool-dev/pdf'
3340
with:
3441
platforms: linux/amd64,linux/arm64
3542
push: true

0 commit comments

Comments
 (0)