Commit 69b6027c178c8c70fdc33eb7bb22f5a25a6c4b56

Edward Thomson 2020-06-06T17:26:58

Update main.yml

diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 9ddbe65..eb1a0a4 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -31,17 +31,12 @@ jobs:
     - 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"
-    - run: |
-        env
-        echo "${{env.docker-exists}}"
-    - run: echo yo
+    - 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 }} .
+      working-directory: ${{ env.docker-config-path }}
+      if: env.docker-exists != 'true'
+    - name: Publish image
+      run: |
+        docker push docker.pkg.github.com/${{ github.repository }}/${{ matrix.container.name }}:${{ env.docker-label }}
       if: env.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 }} .
-#      working-directory: ${{ env.docker-config-path }}
-#      if: ${{env.docker-exists != true}}
-#    - name: Publish image
-#      run: |
-#        docker push docker.pkg.github.com/${{ github.repository }}/${{ matrix.container.name }}:${{ env.docker-label }}
-#      if: ${{env.docker-exists != true}}