Commit 9401714575fbfe72d064fc9fdd8d6fc80e86c4f8

Edward Thomson 2020-06-06T17:20:23

Update main.yml

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index e66064d..1363b4a 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -30,7 +30,7 @@ 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"
+        docker pull docker.pkg.github.com/${{ github.repository }}/${{ matrix.container.name }}:${{ env.docker-label }} && echo "::set-env name=docker-exists::true"
     - 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 }} .