Unverified Commit 4a8f9f77 by Edward Thomson Committed by GitHub

Update main.yml

parent 94017145
...@@ -31,12 +31,17 @@ jobs: ...@@ -31,12 +31,17 @@ jobs:
- name: Download image - name: Download image
run: | 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: |
run: | env
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 }} . echo "${{env.docker-exists}}"
working-directory: ${{ env.docker-config-path }} - run: echo yo
if: ${{env.docker-exists != true}} if: ${{ env.docker-exists == true }}
- name: Publish image # - name: Build image
run: | # run: |
docker push docker.pkg.github.com/${{ github.repository }}/${{ matrix.container.name }}:${{ env.docker-label }} # 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 }} .
if: ${{env.docker-exists != true}} # 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}}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment