Skip to content

Commit

Permalink
update to use a tag in yml
Browse files Browse the repository at this point in the history
  • Loading branch information
eeholmes committed Jun 1, 2024
1 parent 26577e5 commit 2c9f2af
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/docker-image-aomlomics-jh.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
name: Docker Image CI AOML-omics
env:
IMAGE_NAME: aomlomics-jh
IMAGE_TAG: 2024-06-01

on:
workflow_dispatch: null
push:
Expand All @@ -23,9 +27,10 @@ jobs:
- name: Build the Docker image
if: github.repository == 'nmfs-opensci/container-images'
run: |
docker build images/aomlomics-jh -f images/aomlomics-jh/Dockerfile --tag ghcr.io/nmfs-opensci/container-images/aomlomics-jh:latest
docker build images/$IMAGE_NAME -f 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
- name: Publish
if: github.repository == 'nmfs-opensci/container-images'
run: |
docker push ghcr.io/nmfs-opensci/container-images/aomlomics-jh:latest
docker push ghcr.io/nmfs-opensci/container-images/$IMAGE_NAME:$IMAGE_TAG
docker push ghcr.io/nmfs-opensci/container-images/$IMAGE_NAME:latest

0 comments on commit 2c9f2af

Please sign in to comment.