@@ -42,53 +42,11 @@ jobs:
42
42
(needs.test.result == 'success' || needs.test.result == 'skipped')
43
43
needs : [test]
44
44
runs-on : ubuntu-latest
45
- env :
46
- DOCKER_IMAGE_NAME : chat
47
45
steps :
48
46
49
47
- name : Checkout code
50
48
uses : actions/checkout@v4
51
49
52
- # Apply tags and labels based on GitHub Actions events and Git metadata
53
- - name : Apply Docker Image tags & labels
54
- id : meta
55
- uses : docker/metadata-action@v5
56
- with :
57
- # list of Docker images to use as base name for tags
58
- images : |
59
- ghcr.io/${{ github.repository_owner }}/${{ env.DOCKER_IMAGE_NAME }}
60
- # generate Docker tags based on the following events/attributes
61
- tags : |
62
- type=ref,event=branch
63
- type=ref,event=pr
64
- type=match,pattern=v(.*),group=1
65
- type=match,pattern=v(\d.\d),group=1
66
- type=match,pattern=v(\d),group=1
67
- type=sha
68
- type=raw,value=latest,enable={{is_default_branch}}
69
-
70
- - name : Set up QEMU
71
- uses : docker/setup-qemu-action@v3
72
-
73
- - name : Set up Docker Buildx
74
- uses : docker/setup-buildx-action@v3
75
-
76
- - name : Login to GitHub Container Registry
77
- uses : docker/login-action@v3
78
- with :
79
- registry : ghcr.io
80
- username : ${{ github.repository_owner }}
81
- password : ${{ secrets.GITHUB_TOKEN }}
82
-
83
- - name : Build and push
84
- uses : docker/build-push-action@v5
85
- with :
86
- push : true
87
- context : .
88
- file : ./src/container_apps/Jordnaer.Chat/Dockerfile
89
- tags : ${{ steps.meta.outputs.tags }}
90
- labels : ${{ steps.meta.outputs.labels }}
91
-
92
50
- name : Azure Login
93
51
uses : azure/login@v1
94
52
with :
99
57
with :
100
58
appSourcePath : ${{ github.workspace }}src/container_apps/Jordnaer.Chat
101
59
registryUrl : gcr.io
102
- registryUsername : ${{ secrets.CHAT_REGISTRY_USERNAME }}
103
- registryPassword : ${{ secrets.CHAT_REGISTRY_PASSWORD }}
60
+ registryUsername : ${{ github.repository_owner }}
61
+ registryPassword : ${{ secrets.GITHUB_TOKEN }}
104
62
containerAppName : chat
105
63
resourceGroup : Jordnaer
106
64
imageToBuild : gcr.io/nielspilgaard/chat:${{ github.sha }}
0 commit comments