mirror of https://github.com/MISP/misp-docker
Fix Github action Docker image tags to use the SHA1 of HEAD (#7)
Signed-off-by: Sebastiano Mariani <smariani@vmware.com>pull/1/head
parent
9b2471d267
commit
bc512da318
|
@ -20,7 +20,7 @@ jobs:
|
|||
run: |
|
||||
docker compose --file build-docker-compose.yml --env-file template.env build
|
||||
# Tag the image with the commit SHA[0:7]
|
||||
DOCKER_IMG_TAG=`echo "${{ github.event.pull_request.head.sha }}" | cut -c 1-7`
|
||||
DOCKER_IMG_TAG=`echo "${{ github.sha }}" | cut -c 1-7`
|
||||
docker tag ${{ secrets.DOCKER_USERNAME }}/misp-docker:core-latest ${{ secrets.DOCKER_USERNAME }}/misp-docker:core-$DOCKER_IMG_TAG
|
||||
docker tag ${{ secrets.DOCKER_USERNAME }}/misp-docker:modules-latest ${{ secrets.DOCKER_USERNAME }}/misp-docker:modules-$DOCKER_IMG_TAG
|
||||
|
||||
|
|
Loading…
Reference in New Issue