mirror of
https://gitea.smigz.com/smiggiddy/odin-codeprojects.git
synced 2025-06-27 11:20:40 -04:00
fix ci
This commit is contained in:
parent
bae2e0749b
commit
598dc03c0c
1 changed files with 3 additions and 2 deletions
5
.github/workflows/build.yml
vendored
5
.github/workflows/build.yml
vendored
|
@ -52,6 +52,7 @@ jobs:
|
|||
# Check if the latest image exists in the registry
|
||||
IMAGE_EXISTS=$(curl -s -o /dev/null -w "%{http_code}" -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" "https://ghcr.io/v2/${{ github.repository_owner }}/${{ matrix.project }}/manifests/latest")
|
||||
|
||||
cd ${{ matrix.project }}
|
||||
if [ "$IMAGE_EXISTS" == "200" ]; then
|
||||
echo "Latest image exists, checking for changes..."
|
||||
|
||||
|
@ -68,7 +69,7 @@ jobs:
|
|||
docker buildx build \
|
||||
--push \
|
||||
-t $IMAGE_TAG_LATEST \
|
||||
-f ${{ matrix.project }}/devops/Dockerfile \
|
||||
-f ./devops/Dockerfile \
|
||||
--build-arg TARGET_REVISION=$(git rev-parse HEAD) \
|
||||
--cache-from type=gha \
|
||||
--cache-to type=gha,mode=max \
|
||||
|
@ -79,7 +80,7 @@ jobs:
|
|||
docker buildx build \
|
||||
--push \
|
||||
-t $IMAGE_TAG_LATEST \
|
||||
-f ${{ matrix.project }}/devops/Dockerfile \
|
||||
-f ./devops/Dockerfile \
|
||||
--build-arg TARGET_REVISION=$(git rev-parse HEAD) \
|
||||
--cache-from type=gha \
|
||||
--cache-to type=gha,mode=max \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue