Skip to content

Commit ffc98b6

Browse files
authored
Merge pull request #82 from nmfs-opensci:psaw
Add docker image build for psaw
2 parents e8c2c36 + 0ca9b3f commit ffc98b6

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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

0 commit comments

Comments
 (0)