File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : build-and-push-dev-image
1+ name : build-and-push-dev-ci- image
22
33on :
44 push :
55 branches : [main]
66
77jobs :
8- build-and-push-dev-image :
8+ build-and-push-dev-ci- image :
99 runs-on : ubuntu-latest
1010 permissions :
1111 contents : read
Original file line number Diff line number Diff line change 1+ name : build-and-push-release-image
2+
3+ on :
4+ push :
5+ branches : [release]
6+
7+ jobs :
8+ build-and-push-release-image :
9+ runs-on : ubuntu-latest
10+ permissions :
11+ contents : read
12+ packages : write
13+ steps :
14+ - uses : actions/checkout@v3
15+
16+ - name : Set up QEMU
17+ uses : docker/setup-qemu-action@v2
18+
19+ - name : Login to DockerHub
20+ uses : docker/login-action@v2
21+ with :
22+ username : ${{ secrets.DOCKERHUB_USERNAME }}
23+ password : ${{ secrets.DOCKERHUB_TOKEN }}
24+
25+ - name : Set up Docker Buildx
26+ id : buildx
27+ uses : docker/setup-buildx-action@v2
28+ with :
29+ install : true
30+ version : v0.9.1
31+
32+ - name : Docker meta
33+ id : meta
34+ uses : docker/metadata-action@v4
35+ with :
36+ images : |
37+ sqlchat/sqlchat
38+ flavor : |
39+ latest=false
40+ tags : |
41+ type=raw,value=latest
42+
43+ - name : Build and Push
44+ id : docker_build
45+ uses : docker/build-push-action@v3
46+ with :
47+ context : ./
48+ file : ./Dockerfile
49+ platforms : linux/amd64
50+ push : true
51+ tags : ${{ steps.meta.outputs.tags }}
52+ labels : ${{ steps.meta.outputs.labels }}
You can’t perform that action at this time.
0 commit comments