Commit 5f4b3017f3f46b37cf610619e44c04420b3ec29f

Edward Thomson 2020-06-06T23:44:51

Update main.yml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index d8c0355..07f4b7e 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -99,9 +99,10 @@ jobs:
     - name: Build and test
       run: |
         if [ -n "${{ matrix.platform.image }}" ]; then
+          docker_container="${{ github.repository }}/${{ matrix.platform.image }}:latest"
           docker login https://${{ env.foo }} -u ${{ github.actor }} -p ${{ github.token }}
-          docker pull ${{ env.foo }}/${{ matrix.platform.image }}:latest
-          docker run ${{ env.foo }}/${{ matrix.platform.image }}:latest echo hi
+          docker pull ${{ env.foo }}/${docker_container}
+          docker run ${{ env.foo }}/${docker_container} echo hi
         else
           mkdir build && cd build
           ../azure-pipelines/build.sh