Unverified Commit 69b6027c by Edward Thomson Committed by GitHub

Update main.yml

parent 5a5335f4
......@@ -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}}
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