Skip to content

Commit

Permalink
ci(ghcr): corrected and activatated the GitHub container registry action
Browse files Browse the repository at this point in the history
  • Loading branch information
amyheather committed Jul 19, 2024
1 parent fd840e8 commit aa18ddf
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/docker_ghr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ run-name: Publish Docker image on GitHub container registry (ghcr.io)
# Source: https://dev.to/github/publishing-a-docker-image-to-githubs-container-repository-4n50

on:
# TODO: Uncomment these lines once have added Dockerfile
# TODO: Uncomment these lines
# (Currently, they are ensuring that action can only be triggered manually)
# push:
# branches: main
Expand All @@ -20,10 +20,6 @@ jobs:
contents: read
packages: write

# TODO: Remove this line once have added Dockerfile
# (Currently, its ensuring a triggered action will skip this job)
if: false

steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -35,8 +31,7 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

# TODO: Update "envname" below to the correct name for your project's environment
- name: Build the Docker image
run: |
docker build . --file reproduction/docker/Dockerfile --tag ghcr.io/pythonhealthdatascience/envname:latest
docker push ghcr.io/pythonhealthdatascience/envname:latest
docker build . --file reproduction/docker/Dockerfile --tag ghcr.io/pythonhealthdatascience/huang2019:latest
docker push ghcr.io/pythonhealthdatascience/huang2019:latest

0 comments on commit aa18ddf

Please sign in to comment.