File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Build and push Docker images
2
+ on :
3
+ push :
4
+ tags :
5
+ - v*
6
+ workflow_dispatch :
7
+
8
+ env :
9
+ REGISTRY : ghcr.io
10
+
11
+ jobs :
12
+ server :
13
+ runs-on : ubuntu-latest
14
+ permissions : write-all
15
+ steps :
16
+ - name : Checkout repository
17
+ uses : actions/checkout@v3
18
+ - name : Set up Docker Buildx
19
+ uses : docker/setup-buildx-action@v3
20
+ with :
21
+ driver : docker
22
+ - name : Login to GitHub Container Registry
23
+ uses : docker/login-action@v3
24
+ with :
25
+ registry : ${{ env.REGISTRY }}
26
+ username : " motortruck1221"
27
+ password : ${{ secrets.GITHUB_TOKEN }}
28
+ - name : Extract Docker Metadata
29
+ id : meta
30
+ uses : docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
31
+ with :
32
+ images : ${{ env.REGISTRY }}/ruby-network/corlink-server
33
+ - name : Build and push Docker image
34
+ id : docker_build
35
+ uses : docker/build-push-action@v3
36
+ with :
37
+ context : .
38
+ file : ./Dockerfile
39
+ push : true
40
+ labels : ${{ steps.meta.outputs.labels }}
41
+ tags : ${{ env.REGISTRY }}/ruby-network/assets-server:latest, ${{ env.REGISTRY }}/ruby-network/assets-server:${{ github.sha }}
You can’t perform that action at this time.
0 commit comments