-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ci/cd): don't use infisical, change manifest with IMAGE_TAG only
- Loading branch information
1 parent
462c4ee
commit d6ac4b6
Showing
1 changed file
with
2 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,15 +46,6 @@ jobs: | |
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Setup Infisical | ||
uses: Infisical/[email protected] | ||
with: | ||
client-id: ${{ secrets.INFISICAL_CLIENT_ID }} | ||
client-secret: ${{ secrets.INFISICAL_CLIENT_SECRET }} | ||
env-slug: prod | ||
project-slug: 2024-newbies-un-mb | ||
domain: ${{ secrets.INFISICAL_DOMAIN }} | ||
|
||
- name: Set up JDK 21 | ||
uses: actions/setup-java@v4 | ||
with: | ||
|
@@ -90,18 +81,15 @@ jobs: | |
|
||
- name: Update Kubernetes Manifest | ||
env: | ||
REGISTRY: ${{ needs.build.outputs.REGISTRY }} | ||
REPOSITORY: ${{ needs.build.outputs.REPOSITORY }} | ||
IMAGE_TAG: ${{ needs.build.outputs.IMAGE_TAG }} | ||
run: | | ||
sed -i "s|image:.*|image: $REGISTRY\/$REPOSITORY:$IMAGE_TAG|g" infoteam/service/2024_newbies/prod.yaml | ||
sed -i "s|image:.*|image: $IMAGE_TAG|g" infoteam/service/2024_newbies/prod.yaml | ||
- name: Commit and Push | ||
env: | ||
REPOSITORY: ${{ needs.build.outputs.REPOSITORY }} | ||
IMAGE_TAG: ${{ needs.build.outputs.IMAGE_TAG }} | ||
run: | | ||
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" | ||
git config --global user.name "GitHub Actions" | ||
git commit -am "Update image $REPOSITORY:$IMAGE_TAG" | ||
git commit -am "Update image $IMAGE_TAG" | ||
git push -u origin master |