Skip to content

Commit 318dd9d

Browse files
chore: bump actions/checkout from 6 to 7 (#130)
* chore: bump actions/checkout from 6 to 7 Bumps [actions/checkout](https://github.com/actions/checkout) from 6 to 7. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](actions/checkout@v6...v7) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '7' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * chore(ci): trigger ci workflow * fix(ci): slugify image tag to match argocd branch_slug Preview deployments were failing with ErrImagePull because CI pushed the raw branch name (e.g. dependabot-github_actions-...) while the ArgoCD ApplicationSet pulls docker.io/saidsef/node-webserver:{{branch_slug}}, which lowercases and replaces non-[a-z0-9-] chars with '-'. Slugify TAG the same way so the pushed tag matches the tag ArgoCD resolves. --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Said Sef <saidsef@gmail.com>
1 parent 3285000 commit 318dd9d

3 files changed

Lines changed: 10 additions & 5 deletions

File tree

.github/workflows/docker.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,15 @@ jobs:
2525
runs-on: ubuntu-latest
2626
steps:
2727
- name: Check out repository code
28-
uses: actions/checkout@v6
28+
uses: actions/checkout@v7
2929
- name: Set Tag Names
3030
run: |
31-
echo "TAG=${{ github.head_ref || github.ref_name }}" >> $GITHUB_ENV
31+
SLUG=$(echo "${{ github.head_ref || github.ref_name }}" \
32+
| tr '[:upper:]' '[:lower:]' \
33+
| sed 's/[^a-z0-9-]/-/g' \
34+
| cut -c1-50 \
35+
| sed 's/-*$//')
36+
echo "TAG=${SLUG}" >> $GITHUB_ENV
3237
echo "DATE=v$(echo `date +'%Y.%m'`)" >> $GITHUB_ENV
3338
echo "REPO_NAME=$(echo ${PWD##*/})" >> $GITHUB_ENV
3439
- name: Login to DockerHub
@@ -99,7 +104,7 @@ jobs:
99104
- name: Create k8s Kind Cluster
100105
uses: helm/kind-action@v1.14.0
101106
- name: Checkout
102-
uses: actions/checkout@v6
107+
uses: actions/checkout@v7
103108
- name: Run K8s test
104109
run: |
105110
kubectl cluster-info

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
runs-on: ubuntu-latest
1818
steps:
1919
- name: Check out repository code
20-
uses: actions/checkout@v6
20+
uses: actions/checkout@v7
2121
- name: Fetch remote tags
2222
run: git fetch origin +refs/tags/*:refs/tags/*
2323
- name: Set Tag Value

.github/workflows/tagging.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
if: ${{ contains(github.ref, 'main') }}
2424
steps:
2525
- name: Check out repository code
26-
uses: actions/checkout@v6
26+
uses: actions/checkout@v7
2727
- name: Fetch remote tags
2828
run: git fetch origin +refs/tags/*:refs/tags/*
2929
- name: Set Tag Value

0 commit comments

Comments
 (0)