File tree Expand file tree Collapse file tree 1 file changed +2
-21
lines changed Expand file tree Collapse file tree 1 file changed +2
-21
lines changed Original file line number Diff line number Diff line change 5
5
# Triggers the workflow on push or pull request events but only for the master branch
6
6
push :
7
7
branches : [ master ]
8
- tags : ['v*.*.*']
9
8
pull_request :
10
9
branches : [ master ]
11
10
24
23
- name : Check Out Repo
25
24
uses : actions/checkout@v2
26
25
27
- - name : Docker meta
28
- id : meta
29
- uses : docker/metadata-action@v3
30
- with :
31
- # list of Docker images to use as base name for tags
32
- images : |
33
- ${{ secrets.DOCKER_REPO_PATH }}/rest-api-component-oih
34
- # generate Docker tags based on the following events/attributes
35
- tags : |
36
- type=schedule
37
- type=ref,event=branch
38
- type=ref,event=pr
39
- type=semver,pattern={{version}}
40
- type=semver,pattern={{major}}.{{minor}}
41
- type=semver,pattern={{major}}
42
- type=sha
43
-
44
26
- name : Set up Docker Buildx
45
27
id : buildx
46
28
uses : docker/setup-buildx-action@v1
67
49
builder : ${{ steps.buildx.outputs.name }}
68
50
file : ./Dockerfile
69
51
push : ${{ github.event_name != 'pull_request' }}
70
- tags : ${{ steps.meta.outputs.tags }}
71
- labels : ${{ steps.meta.outputs.labels }}
52
+ tags : ${{ secrets.DOCKER_REPO_PATH }}/rest-api-component-oih:latest
72
53
cache-from : type=local,src=/tmp/.buildx-cache
73
54
cache-to : type=local,dest=/tmp/.buildx-cache-new
74
55
82
63
mv /tmp/.buildx-cache-new /tmp/.buildx-cache
83
64
84
65
- name : Image digest
85
- run : echo ${{ steps.docker_build.outputs.digest }}
66
+ run : echo ${{ steps.docker_build.outputs.digest }}
You can’t perform that action at this time.
0 commit comments