Skip to content

Commit

Permalink
Updating to docker login v2 and abbreviating push.
Browse files Browse the repository at this point in the history
  • Loading branch information
phargogh committed Jun 24, 2023
1 parent 93f7c3f commit c64bf29
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
- uses: actions/checkout@v3

- name: login to GitHub Container Registry
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
Expand All @@ -60,9 +60,7 @@ jobs:
docker run --rm ghcr.io/${{ github.repository_owner }}/${{ env.CONTAINER_NAME }}:latest python -m natcap.invest --version
- name: Push docker
run: |
docker push ghcr.io/${{ github.repository_owner }}/${{ env.CONTAINER_NAME }}:latest
docker push ghcr.io/${{ github.repository_owner }}/${{ env.CONTAINER_NAME }}:${{ env.DATESTAMP_VERSION }}
run: docker image push --all-tags ghcr.io/${{ github.repository_owner }}/${{ env.CONTAINER_NAME }}

- name: Build singularity
run: |
Expand Down

0 comments on commit c64bf29

Please sign in to comment.