File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed
Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change 1- name : Publish Image to GitHub Container Registry
1+ name : Publish Package - GHCR
22
33on :
4- push :
5- branches : ["main" ]
4+ release :
5+ types : [published ]
66
77env :
88 REGISTRY : ghcr.io
@@ -32,10 +32,18 @@ jobs:
3232 with :
3333 images : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
3434
35+ - name : Read YAML file for version
36+ uses :
pietrobolcato/[email protected] 37+ id : read_yaml
38+ with :
39+ config : ${{ github.workspace }}/version.yaml
40+
3541 - name : Build and push Docker image
3642 uses : docker/build-push-action@v4
3743 with :
3844 context : .
3945 push : true
40- tags : ghcr.io/pradumnasaraf/contributors:latest
46+ tags : |
47+ ghcr.io/pradumnasaraf/contributors:latest
48+ ghcr.io/pradumnasaraf/contributors:${{ steps.read_yaml.outputs['version'] }}
4149 labels : ${{ steps.meta.outputs.labels }}
You can’t perform that action at this time.
0 commit comments