File tree Expand file tree Collapse file tree 2 files changed +37
-0
lines changed Expand file tree Collapse file tree 2 files changed +37
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : ghcr
2
+ on :
3
+ workflow_dispatch :
4
+ inputs :
5
+ version :
6
+ type : string
7
+ required : true
8
+ description : version (e.g. 1.2.3)
9
+ env :
10
+ IMAGE_NAME : workshop-azure-openai
11
+ jobs :
12
+ publish :
13
+ runs-on : ubuntu-latest
14
+ permissions :
15
+ packages : write
16
+ contents : read
17
+ steps :
18
+ - uses : actions/checkout@v4
19
+ - uses : docker/login-action@v3
20
+ with :
21
+ registry : ghcr.io
22
+ username : ${{ github.actor }}
23
+ password : ${{ secrets.GITHUB_TOKEN }}
24
+ - uses : docker/metadata-action@v5
25
+ id : meta
26
+ with :
27
+ images : ghcr.io/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}
28
+ tags : |
29
+ type=semver,pattern={{version}},value=v${{ inputs.version }}
30
+ type=raw,value=latest
31
+ - uses : docker/build-push-action@v5
32
+ with :
33
+ push : true
34
+ context : .
35
+ tags : ${{ steps.meta.outputs.tags }}
36
+ labels : ${{ steps.meta.outputs.labels }}
Original file line number Diff line number Diff line change 1
1
[ ![ test] ( https://github.com/ks6088ts-labs/workshop-azure-openai/actions/workflows/test.yaml/badge.svg?branch=main )] ( https://github.com/ks6088ts-labs/workshop-azure-openai/actions/workflows/test.yaml?query=branch%3Amain )
2
2
[ ![ docker] ( https://github.com/ks6088ts-labs/workshop-azure-openai/actions/workflows/docker.yaml/badge.svg?branch=main )] ( https://github.com/ks6088ts-labs/workshop-azure-openai/actions/workflows/docker.yaml?query=branch%3Amain )
3
3
[ ![ docker-release] ( https://github.com/ks6088ts-labs/workshop-azure-openai/actions/workflows/docker-release.yaml/badge.svg )] ( https://github.com/ks6088ts-labs/workshop-azure-openai/actions/workflows/docker-release.yaml )
4
+ [ ![ ghcr] ( https://github.com/ks6088ts-labs/workshop-azure-openai/actions/workflows/ghcr.yaml/badge.svg )] ( https://github.com/ks6088ts-labs/workshop-azure-openai/actions/workflows/ghcr.yaml )
4
5
5
6
# workshop-azure-openai
6
7
You can’t perform that action at this time.
0 commit comments