mirror of https://github.com/MISP/misp-docker
Fix test action at pull request time
parent
14129387c4
commit
f88c73c6f9
|
@ -25,10 +25,7 @@ jobs:
|
|||
run: |
|
||||
# Initialize variables
|
||||
DOCKER_IMG_TAG=`echo "${{ github.sha }}" | cut -c 1-7`
|
||||
DOCKER_USERNAME=${{ secrets.DOCKER_USERNAME }}
|
||||
# Login
|
||||
echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
|
||||
# Create the environment
|
||||
sed -e '/^[[:space:]]*$/d' -e '/[#@]/d' -e 's/\(^[^=]*\)=\(.*\)/\1="\2"/' template.env > env.hcl
|
||||
# Build and Push
|
||||
DOCKER_IMG_TAG=$DOCKER_IMG_TAG DOCKER_USERNAME=$DOCKER_USERNAME docker buildx bake -f docker-bake.hcl -f env.hcl
|
||||
DOCKER_IMG_TAG=$DOCKER_IMG_TAG docker buildx bake -f docker-bake.hcl -f env.hcl
|
||||
|
|
Loading…
Reference in New Issue