forked from sqlc-dev/sqlc
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (33 loc) · 970 Bytes
/
docker.yml
File metadata and controls
33 lines (33 loc) · 970 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: docker
on:
push:
branches:
- master
jobs:
docker:
name: push kjconroy/sqlc:devel
runs-on: ubuntu-latest
steps:
- name: Set created date
id: prep
run: |
echo ::set-output name=created::$(date -u +'%Y-%m-%dT%H:%M:%SZ')
- uses: actions/checkout@v2.3.4
- uses: docker/setup-buildx-action@v1
- uses: docker/login-action@v1.9.0
with:
username: kjconroy
password: ${{ secrets.DOCKER_PASSWORD }}
- uses: docker/build-push-action@v2.4.0
with:
context: .
file: ./Dockerfile
build-args: |
github_ref=${{ github.ref }}
github_sha=${{ github.sha }}
tags: kjconroy/sqlc:devel
labels: |
org.opencontainers.image.source=${{ github.event.repository.html_url }}
org.opencontainers.image.created=${{ steps.prep.outputs.created }}
org.opencontainers.image.revision=${{ github.sha }}
push: true