Skip to content

Commit a3210b8

Browse files
committed
Update container_apps_chat_cd.yml
1 parent 24c0fc9 commit a3210b8

File tree

1 file changed

+2
-44
lines changed

1 file changed

+2
-44
lines changed

.github/workflows/container_apps_chat_cd.yml

Lines changed: 2 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -42,53 +42,11 @@ jobs:
4242
(needs.test.result == 'success' || needs.test.result == 'skipped')
4343
needs: [test]
4444
runs-on: ubuntu-latest
45-
env:
46-
DOCKER_IMAGE_NAME: chat
4745
steps:
4846

4947
- name: Checkout code
5048
uses: actions/checkout@v4
5149

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-
9250
- name: Azure Login
9351
uses: azure/login@v1
9452
with:
@@ -99,8 +57,8 @@ jobs:
9957
with:
10058
appSourcePath: ${{ github.workspace }}src/container_apps/Jordnaer.Chat
10159
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 }}
10462
containerAppName: chat
10563
resourceGroup: Jordnaer
10664
imageToBuild: gcr.io/nielspilgaard/chat:${{ github.sha }}

0 commit comments

Comments
 (0)