Skip to content

Commit 188d0ce

Browse files
committed
fix: release workflow updates
1 parent f1431ad commit 188d0ce

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.github/workflows/az_acr_release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,23 +31,25 @@ jobs:
3131
uses: docker/setup-buildx-action@v3
3232

3333
- name: Build & Push ${{ github.event.repository.name }}:amd64
34+
if: ${{ github.event_name != 'release' }}
3435
uses: docker/build-push-action@v5
3536
with:
3637
cache-from: type=gha
3738
cache-to: type=gha,mode=max
38-
file: 'Dockerfile'
39+
file: ${{ env.DOCKERFILE }}
3940
tags: ${{ env.AZURE_CONTAINER_REGISTRY }}/${{ github.event.repository.name }}:amd64
4041
push: true
4142
build-args: |
4243
platform=linux/amd64
4344
label=dockerfile-path=https://github.com/${{ github.repository }}/blob/${{ github.sha }}/Dockerfile
4445
4546
- name: Build & Push ${{ github.event.repository.name }}:arm64
47+
if: ${{ github.event_name != 'release' }}
4648
uses: docker/build-push-action@v5
4749
with:
4850
cache-from: type=gha
4951
cache-to: type=gha,mode=max
50-
file: 'Dockerfile'
52+
file: ${{ env.DOCKERFILE }}
5153
tags: ${{ env.AZURE_CONTAINER_REGISTRY }}/${{ github.event.repository.name }}:arm64
5254
push: true
5355
build-args: |

.github/workflows/k8s_edit.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
k8-edit:
1717
name: 'K8: Edit'
1818
runs-on: ubuntu-latest
19-
environment: ${{ github.ref_name }}
19+
environment: ${{ github.event_name == 'release' && 'prod' || 'dev' }}
2020
env:
2121
KUBELOGIN_VERSION: "v0.0.25"
2222
KUBERNETES_CLUSTER_REPO_NAME: "${{ vars.KUBERNETES_CLUSTER_REPO_NAME }}"
@@ -72,14 +72,14 @@ jobs:
7272
git fetch origin
7373
git checkout $AUTOMATED_RELEASE_BRANCH || git checkout -b $AUTOMATED_RELEASE_BRANCH
7474
75-
bash cicd-deployment-scripts-self-hosted/k8s/edit.sh \
75+
bash cicd-deployment-scripts/k8s/edit.sh \
7676
-n ${{ env.KUBERNETES_NAMESPACE }} \
7777
-d ${{ github.event.repository.name }} \
7878
-f ${{ env.KUBERNETES_MANIFEST_FILE_PATH }} \
7979
-r ${{ env.AZURE_CONTAINER_REGISTRY }} \
8080
-t ${{ env.IMAGE_TAG }}
8181
82-
rm -rf cicd-deployment-scripts-self-hosted
82+
rm -rf cicd-deployment-scripts
8383
8484
git add ${{ env.KUBERNETES_MANIFEST_FILE_PATH }}
8585
git commit -m "ci(${{ github.event.repository.name }}): $KUBERNETES_POD_NEW_IMAGE" || true

0 commit comments

Comments
 (0)