Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use github.sha for docker #907

Merged
merged 1 commit into from
Aug 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions .github/workflows/publish-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
context: .
file: ./docker/DockerfileLatest
push: false
tags: pveleskopglc/chipstar:pr-${{ github.event.number }}
tags: pveleskopglc/chipstar:${{ github.sha }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache

Expand All @@ -43,14 +43,13 @@ jobs:

- name: Tag and push Docker image
run: |
docker tag pveleskopglc/chipstar:pr-${{ github.event.number }} pveleskopglc/chipstar:latest
docker tag pveleskopglc/chipstar:${{ github.sha }} pveleskopglc/chipstar:latest
docker push pveleskopglc/chipstar:latest


cleanup:
needs: [push]
runs-on: [self-hosted, Linux, X64]
steps:
- name: Clean up old Docker images
run: |
docker rmi $(docker images -q pveleskopglc/chipstar:pr-${{ github.event.number }})
docker rmi $(docker images -q pveleskopglc/chipstar:${{ github.sha }})
Loading