Commit 560ca69a78ad9d7611fcd871e4aed9969bde1786

Edward Thomson 2020-06-06T17:30:48

Update main.yml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 4a09d97..943b344 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -30,7 +30,8 @@ jobs:
         docker login https://docker.pkg.github.com -u ${{github.actor}} -p ${{github.token}}
     - name: Download image
       run: |
-        docker pull docker.pkg.github.com/${{ github.repository }}/${{ matrix.container.name }}:${{ env.docker-label }} && echo "::set-env name=docker-exists::true"
+        echo "::set-env name=docker-exists::true"
+        docker pull docker.pkg.github.com/${{ github.repository }}/${{ matrix.container.name }}:${{ env.docker-label }} || echo "::set-env name=docker-exists::false"
     - name: Build image
       run: |
         docker build -t docker.pkg.github.com/${{ github.repository }}/${{ matrix.container.name }}:${{ env.docker-label }} --build-arg BASE=${{ matrix.container.base }} -f ${{ matrix.container.name }} .