add git commit hash to file "git_commit" for automatically-built docker images (#211)

This commit is contained in:
Abigail Gold 2020-03-29 16:34:12 +00:00 committed by GitHub
parent 8ca4911072
commit 3803ce6045
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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