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