Skip to content

Commit

Permalink
Merge pull request #3197 from GeotrekCE/deploy_dev
Browse files Browse the repository at this point in the history
manage prerealse
  • Loading branch information
submarcos committed Jul 29, 2022
2 parents 8a664c6 + 1fc95a5 commit 93e02ea
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -474,10 +474,15 @@ jobs:
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Publish Docker image (v2 and latest)
run: |
if [[ "${{ github.ref }}" == *"dev"* ]]; then
export DOCKER_TAG=dev
else
export DOCKER_TAG=latest
fi
docker tag geotrek:latest geotrekce/admin:$(cat VERSION)
docker push geotrek:latest geotrekce/admin:$(cat VERSION)
docker tag geotrek:latest geotrekce/admin:latest
docker push geotrek:latest geotrekce/admin:latest
docker tag geotrek:latest geotrekce/admin:$DOCKER_TAG
docker push geotrek:latest geotrekce/admin:$DOCKER_TAG
- name: Install SSH key
uses: shimataro/ssh-key-action@v2
with:
Expand Down

0 comments on commit 93e02ea

Please sign in to comment.