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 bfb59d9
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 16 deletions.
39 changes: 23 additions & 16 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ jobs:
if: github.event_name != 'release'
runs-on: pathfinder-large-ubuntu
steps:
- name: Determine Docker image metadata
id: meta
uses: docker/metadata-action@v4
with:
images: eqlabs/pathfinder
- name: Checkout sources
uses: actions/checkout@v3
with:
Expand Down Expand Up @@ -56,29 +61,31 @@ jobs:
platforms: |
linux/amd64
linux/arm64
file: ./Dockerfile
file: ./EmptyDockerfile
build-args: |
PATHFINDER_FORCE_VERSION=${{ steps.generate_version.outputs.pathfinder_version }}
builder: ${{ steps.buildx.outputs.name }}
push: true
tags: ${{ github.sha }}
labels: ${{ steps.meta.outputs.labels }}
tags: eqlabs/pathfinder: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
2 changes: 2 additions & 0 deletions EmptyDockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
FROM scratch
WORKDIR /

0 comments on commit bfb59d9

Please sign in to comment.