mirror of
https://github.com/miaowware/qrm2.git
synced 2024-11-25 17:28:43 -05:00
add git commit hash to file "git_commit" for automatically-built docker images (#211)
This commit is contained in:
parent
8ca4911072
commit
3803ce6045
4
.github/workflows/docker.yml
vendored
4
.github/workflows/docker.yml
vendored
@ -20,7 +20,9 @@ jobs:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Build image
|
||||
run: docker build . --file Dockerfile -t $IMAGE_NAME
|
||||
run: |
|
||||
echo ${{ github.sha }} > git_commit
|
||||
docker build . --file Dockerfile -t $IMAGE_NAME
|
||||
|
||||
- name: Log into Github Package Registry
|
||||
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u ${{ github.actor }} --password-stdin
|
||||
|
Loading…
Reference in New Issue
Block a user