Skip to content

Commit

Permalink
fix(ci/cd): don't use infisical, change manifest with IMAGE_TAG only
Browse files Browse the repository at this point in the history
  • Loading branch information
2paperstar committed Aug 25, 2024
1 parent 462c4ee commit d6ac4b6
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions .github/workflows/production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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

0 comments on commit d6ac4b6

Please sign in to comment.