Skip to content

Commit 5f4b301

Browse files
authored
Update main.yml
1 parent 78ed45d commit 5f4b301

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,10 @@ jobs:
9999
- name: Build and test
100100
run: |
101101
if [ -n "${{ matrix.platform.image }}" ]; then
102+
docker_container="${{ github.repository }}/${{ matrix.platform.image }}:latest"
102103
docker login https://${{ env.foo }} -u ${{ github.actor }} -p ${{ github.token }}
103-
docker pull ${{ env.foo }}/${{ matrix.platform.image }}:latest
104-
docker run ${{ env.foo }}/${{ matrix.platform.image }}:latest echo hi
104+
docker pull ${{ env.foo }}/${docker_container}
105+
docker run ${{ env.foo }}/${docker_container} echo hi
105106
else
106107
mkdir build && cd build
107108
../azure-pipelines/build.sh

0 commit comments

Comments
 (0)