Skip to content

Commit

Permalink
Also build docker image on tags
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonEtco committed Aug 16, 2024
1 parent 1a37894 commit 8a8abe0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/dockertag.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
name: Create and publish a Docker image
on:
push:
branches: ["main"]
branches:
- main
tags:
- "v*"
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
Expand Down Expand Up @@ -37,7 +40,7 @@ jobs:
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
tags: ${{ steps.meta.outputs.tags }}, ghcr.io/copilot-extensions/github-models-extension:${{ }}
labels: ${{ steps.meta.outputs.labels }}

# This step generates an artifact attestation for the image, which is an unforgeable statement about where and how it was built. It increases supply chain security for people who consume the image. For more information, see "[AUTOTITLE](/actions/security-guides/using-artifact-attestations-to-establish-provenance-for-builds)."
Expand Down

0 comments on commit 8a8abe0

Please sign in to comment.