diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index a672bca..9cd003f 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -1,4 +1,4 @@ -name: Docker +name: Container Image Build # This workflow uses actions that are not certified by GitHub. # They are provided by a third-party and are governed by @@ -9,7 +9,7 @@ on: push: branches: [ ] # Publish semver tags as releases. - tags: [ 'v*.*.*' ] + tags: [ '*v*.*.*' ] pull_request: branches: [ ] @@ -30,32 +30,32 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v6 - # Login against a Docker registry except on PR + # Login against a Container registry except on PR # https://github.com/docker/login-action - name: Log into registry ${{ env.REGISTRY }} if: github.event_name != 'pull_request' - uses: docker/login-action@28218f9b04b4f3f62068d7b6ce6ca5b26e35336c + uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef with: registry: ${{ env.REGISTRY }} username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - # Extract metadata (tags, labels) for Docker + # Extract metadata (tags, labels) for Container # https://github.com/docker/metadata-action - - name: Extract Docker metadata + - name: Extract Container metadata id: meta - uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38 + uses: docker/metadata-action@c299e40c65443455700f0fdfc63efafe5b349051 with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} - # Build and push Docker image with Buildx (don't push on PR) + # Build and push Container image with Buildx (don't push on PR) # https://github.com/docker/build-push-action - - name: Build and push Docker image - uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc + - name: Build and push Container image + uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 with: - context: . + context: ./ push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} + labels: ${{ steps.meta.outputs.labels }} \ No newline at end of file