update workflow

This commit is contained in:
mungai-njoroge 2023-10-14 01:57:04 +03:00
parent 0a7016ba75
commit 11b12efa39

View File

@ -151,9 +151,6 @@ jobs:
# list of Docker images to use as base name for tags # list of Docker images to use as base name for tags
images: | images: |
ghcr.io/${{ github.repository }} ghcr.io/${{ github.repository }}
- name: print directory
run: |
ls -R
- name: Build and push - name: Build and push
uses: docker/build-push-action@v2 uses: docker/build-push-action@v2
with: with:
@ -162,5 +159,7 @@ jobs:
push: true push: true
tags: ghcr.io/${{github.repository}}:${{inputs.tag}}, ${{env.LATEST_TAG}} tags: ghcr.io/${{github.repository}}:${{inputs.tag}}, ${{env.LATEST_TAG}}
labels: org.opencontainers.image.title=Docker labels: org.opencontainers.image.title=Docker
build-args: |
--provenance=false
env: env:
LATEST_TAG: ${{ inputs.is_latest == 'true' && format('ghcr.io/{0}:latest', github.repository) || '' }} LATEST_TAG: ${{ inputs.is_latest == 'true' && format('ghcr.io/{0}:latest', github.repository) || '' }}