Skip to content

Commit

Permalink
Trying checkout
Browse files Browse the repository at this point in the history
  • Loading branch information
TBeijen committed Jul 24, 2024
1 parent 0f6471e commit 0d2d204
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,22 @@ jobs:
needs:
- build
steps:
- name: GitOps Checkout
uses: actions/checkout@v4
with:
repository: tbeijen/tbnl-www-gitops
ref: main
token: ${{ secrets.TBNL_BOT_PAT }}
fetch-depth: 0
path: tbnl-www-gitops

- name: Extract sha tag
id: extract-sha-tag
run: |
tags="${{ needs.build.outputs.docker_image_tags }}""
echo "Docker image tags:"
echo "$tags"
sha_tag=$(echo "$tags" | grep -oE 'ghcr.io/[^:]+:sha-[^ ]+')
sha_tag=$(echo "$tags" | grep -oE 'sha-[^ ]+')
if [ -z "$sha_tag" ]; then
echo "No tag starting with 'sha-' found."
exit 1
Expand All @@ -84,11 +93,3 @@ jobs:
echo "::set-output name=sha_tag::$sha_tag"
fi
- name: GitOps Checkout
uses: actions/checkout@v4
with:
repository: tbeijen/tbnl-www-gitops
ref: main
token: ${{ secrets.TBNL_BOT_PAT }}
fetch-depth: 0
path: tbnl-www-gitops
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
*.DS_Store
*.drawio.bkp

# Temp. pocs and misc.
.temp/

# image source files
source/
themes/start*

0 comments on commit 0d2d204

Please sign in to comment.