Unverified Commit 4eb9c0a5 by Edward Thomson Committed by GitHub

Update main.yml

parent 7861a86b
......@@ -34,10 +34,10 @@ jobs:
echo "::set-env name=docker-sha-tag::test3-$(git log -1 --pretty=format:"%h" -- ${{ env.docker-config-path }})"
- name: Download existing image
run: |
docker login https://docker.pkg.github.com -u ${{github.actor}} -p ${{github.token}}
docker login https://${{ env.docker-registry }} -u ${{ github.actor }} -p ${{ github.token }}
echo "::set-env name=docker-container-exists::true"
docker pull ${{ env.docker-container-url }}:${{ env.docker-sha-tag }} || echo "::set-env name=docker-container-exists::false"
docker pull ${{ env.docker-registry }}/${{ env.docker-container }}:${{ env.docker-sha-tag }} || echo "::set-env name=docker-container-exists::false"
- name: Build and publish image
run: |
docker build -t ${{ env.docker-registry }}/${{ env.docker-container }}:${{ env.docker-sha-tag }} --build-arg BASE=${{ matrix.container.base }} -f ${{ matrix.container.name }} .
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment