Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
Mirko-von-Leipzig committed Nov 21, 2023
1 parent 0b48ee6 commit d21000c
Showing 1 changed file with 16 additions and 15 deletions.
31 changes: 16 additions & 15 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,24 +61,25 @@ jobs:
PATHFINDER_FORCE_VERSION=${{ steps.generate_version.outputs.pathfinder_version }}
builder: ${{ steps.buildx.outputs.name }}
push: true
tags: ${{ github.sha }}
tags: mirko-testsnapshot-${{ github.sha }}
cache-from: type=gha
cache-to: type=gha,mode=max

# Add the release labels to the associated docker image.
tag-release:
if: github.event_name == 'release'
needs: build-image
runs-on: ubuntu-latest
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
- name: Pull image
run: docker pull eqlabs/pathfinder:${{ github.sha }}
- name: Tag image
run: |
docker tag eqlabs/pathfinder:${{ github.sha }} eqlabs/pathfinder:latest
docker tag eqlabs/pathfinder:${{ github.sha }} eqlabs/pathfinder:${{ github.event.release.tag_name }}
- name: Push image tags
run: docker push --all-tags eqlabs/pathfinder
steps:
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
- name: Pull image
run: docker pull eqlabs/pathfinder:mirko-testsnapshot-${{ github.sha }}
- name: Tag image
run: |
docker tag eqlabs/pathfinder:mirko-testsnapshot-${{ github.sha }} eqlabs/pathfinder:mirko
# docker tag eqlabs/pathfinder:mirko-testsnapshot-${{ github.sha }} eqlabs/pathfinder:${{ github.event.release.tag_name }}
- name: Push image tags
run: docker push --all-tags eqlabs/pathfinder

0 comments on commit d21000c

Please sign in to comment.