Commit 6ad4734867cd83a48ebbd653434fee6484cc5a0a

Edward Thomson 2020-06-06T20:50:45

Update main.yml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index ed00e95..062d6f3 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -40,11 +40,9 @@ jobs:
         docker pull ${{ env.docker-container-url }}:${{ env.docker-sha-tag }} || echo "::set-env name=docker-container-exists::false"
     - name: Build and publish image
       run: |
-        echo hi
+        docker build -t ${{ env.docker-container-url }}:${{ env.docker-sha-tag }} --build-arg BASE=${{ matrix.container.base }} -f ${{ matrix.container.name }} .
+        docker tag ${{ env.docker-container-url }}:${{ env.docker-sha-tag }} ${{ env.docker-container-url }}:latest
+        docker push ${{ docker.container-url }}:${{ env.docker-sha-tag }}
+        docker push ${{ docker.container-url }}:latest
       working-directory: ${{ env.docker-config-path }}
       if: env.docker-container-exists != 'true'
-        
-#        docker build -t ${{ env.docker-container-url }}:${{ env.docker-sha-tag }} --build-arg BASE=${{ matrix.container.base }} -f ${{ matrix.container.name }} .
-#        docker tag ${{ env.docker-container-url }}:${{ env.docker-sha-tag }} ${{ env.docker-container-url }}:latest
-#        docker push ${{ docker.container-url }}:${{ env.docker-sha-tag }}
-#        docker push ${{ docker.container-url }}:latest