File tree 1 file changed +29
-0
lines changed
1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Docker Image CI arcgis
2
+ on :
3
+ workflow_dispatch : null
4
+ push :
5
+ branches : main
6
+ paths :
7
+ - ' images/test/**'
8
+ jobs :
9
+ build :
10
+ runs-on : ubuntu-latest
11
+ permissions : write-all
12
+ steps :
13
+ - uses : actions/checkout@v3
14
+ - name : Login to GitHub Container Registry
15
+ if : github.repository == 'nmfs-opensci/container-images'
16
+ uses : docker/login-action@v1
17
+ with :
18
+ registry : ghcr.io
19
+ username : ${{github.actor}}
20
+ password : ${{secrets.GITHUB_TOKEN}}
21
+ - name : Build the Docker image
22
+ if : github.repository == 'nmfs-opensci/container-images'
23
+ run : |
24
+ docker build images/test -f images/test/Dockerfile --tag ghcr.io/nmfs-opensci/container-images/test:latest
25
+ - name : Publish
26
+ if : github.repository == 'nmfs-opensci/container-images'
27
+ run : |
28
+ docker push ghcr.io/nmfs-opensci/container-images/test:latest
29
+
You can’t perform that action at this time.
0 commit comments