Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ jobs:
load: true
platforms: linux/amd64
tags: kaiohz/pickpro:composable-ui-scan
cache-from: type=gha

- name: Trivy Image Scan (report)
uses: aquasecurity/trivy-action@57a97c7e7821a5776cebc9bb87c984fa69cba8f1
Expand Down Expand Up @@ -99,16 +98,14 @@ jobs:
tags: |
kaiohz/pickpro:composable-ui-${{ steps.sha.outputs.result }}
kaiohz/pickpro:composable-ui-latest
cache-from: type=gha
cache-to: type=gha,mode=max

- name: Checkout flux repository
run: |
git clone https://x-access-token:${{ secrets.FLUX_REPO_TOKEN }}@github.com/SoluDevTech/flux.git flux-repo

- name: Update deployment image tag
run: |
DEPLOYMENT_FILE="flux-repo/dev/composables/composable-ui/deployment.yaml"
DEPLOYMENT_FILE="flux-repo/prd/composables/composable-ui/deployment.yaml"
if [ -f "$DEPLOYMENT_FILE" ]; then
sed -i 's|image: kaiohz/pickpro:composable-ui-.*|image: kaiohz/pickpro:composable-ui-${{ steps.sha.outputs.result }}|g' "$DEPLOYMENT_FILE"
else
Expand All @@ -121,6 +118,6 @@ jobs:
cd flux-repo
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add dev/composables/composable-ui/deployment.yaml
git add prd/composables/composable-ui/deployment.yaml
git commit -m "Update composable-ui image to ${{ steps.sha.outputs.result }}" || echo "No changes to commit"
git push https://x-access-token:${{ secrets.FLUX_REPO_TOKEN }}@github.com/SoluDevTech/flux.git main
Loading