Skip to content

Commit

Permalink
👷 Add publication registry
Browse files Browse the repository at this point in the history
  • Loading branch information
LePetitTim committed Mar 1, 2023
1 parent 5e71bdd commit 3d92d5f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -489,17 +489,27 @@ jobs:
with:
username: ${{ secrets.DOCKER_LOGIN }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Log in to the Container registry
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Publish Docker image (v2 and latest)
run: |
if [[ "${{ github.ref }}" == *"dev"* ]]; then
export DOCKER_TAG=dev
else
docker tag geotrek:latest ghcr.io/geotrek-admin:$DOCKER_TAG
docker tag geotrek:latest geotrekce/admin:$(cat VERSION)
docker push geotrekce/admin:$(cat VERSION)
docker push ghcr.io/geotrek-admin:$(cat VERSION)
export DOCKER_TAG=latest
fi
docker tag geotrek:latest geotrekce/admin:$DOCKER_TAG
docker tag geotrek:latest ghcr.io/geotrek-admin:$DOCKER_TAG
docker push geotrekce/admin:$DOCKER_TAG
docker push ghcr.io/geotrek-admin:$DOCKER_TAG
- name: Install SSH key
uses: shimataro/ssh-key-action@v2
with:
Expand Down

0 comments on commit 3d92d5f

Please sign in to comment.