File tree Expand file tree Collapse file tree 1 file changed +18
-8
lines changed Expand file tree Collapse file tree 1 file changed +18
-8
lines changed Original file line number Diff line number Diff line change 1
1
name : docker
2
-
3
2
on :
4
3
push :
5
4
branches :
6
5
- master
7
-
8
6
jobs :
9
-
10
7
docker :
11
8
name : push kjconroy/sqlc:devel
12
9
runs-on : ubuntu-latest
13
10
steps :
11
+ - name : Set created date
12
+ id : prep
13
+ run : |
14
+ echo ::set-output name=created::$(date -u +'%Y-%m-%dT%H:%M:%SZ')
14
15
- uses : actions/checkout@v2
15
- - uses : docker/build-push-action@v2.1.0
16
+ - uses : docker/setup-buildx-action@v1
17
+ - uses : docker/login-action@v1
16
18
with :
17
19
username : kjconroy
18
20
password : ${{ secrets.DOCKER_PASSWORD }}
19
- build_args : github_ref=${{ github.ref }},github_sha=${{ github.sha }}
20
- repository : kjconroy/sqlc
21
- add_git_labels : true
22
- tags : devel
21
+ - uses : docker/build-push-action@v2
22
+ with :
23
+ context : .
24
+ file : ./Dockerfile
25
+ build-args : |
26
+ github_ref=${{ github.ref }}
27
+ github_sha=${{ github.sha }}
28
+ tags : kjconroy/sqlc:devel
29
+ labels : |
30
+ org.opencontainers.image.source=${{ github.event.repository.html_url }}
31
+ org.opencontainers.image.created=${{ steps.prep.outputs.created }}
32
+ org.opencontainers.image.revision=${{ github.sha }}
You can’t perform that action at this time.
0 commit comments