diff --git a/.github/workflows/docker_ghr.yaml b/.github/workflows/docker_ghr.yaml index 15e1f81..acbf290 100644 --- a/.github/workflows/docker_ghr.yaml +++ b/.github/workflows/docker_ghr.yaml @@ -5,10 +5,8 @@ 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 -# (Currently, they are ensuring that action can only be triggered manually) -# push: -# branches: main + push: + branches: main workflow_dispatch: jobs: @@ -20,10 +18,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 @@ -35,8 +29,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 \ No newline at end of file + docker build . --file reproduction/docker/Dockerfile --tag ghcr.io/pythonhealthdatascience/lim2020:latest + docker push ghcr.io/pythonhealthdatascience/lim2020:latest \ No newline at end of file