add git commit hash to file "git_commit" for automatically-built docker images

This commit is contained in:
Abigail 2020-03-28 21:07:31 -04:00
parent 8ca4911072
commit 73d0ddd7dc
No known key found for this signature in database
GPG Key ID: CF88335E873C3FB4
1 changed files with 3 additions and 1 deletions

View File

@ -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