Skip to content

Commit

Permalink
fix CI for GHCR
Browse files Browse the repository at this point in the history
  • Loading branch information
soaibsafi committed Dec 20, 2023
1 parent 83af9cc commit 95a81f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ jobs:
# Build and push images for each specified Dockerfile
for DOCKER_FILE in "${DOCKER_FILES[@]}"; do
DIR=$(dirname $DOCKER_FILE)
IMAGE_NAME="ghcr.io/fmp-$(basename $DIR)"
IMAGE_NAME="ghcr.io/${{ github.repository }}:$(basename $DIR)"
echo "Building and pushing image $IMAGE_NAME from $DOCKER_FILE..."
docker buildx create --use
docker login ghcr.io -u ${{ github.repository_owner }} -p $CR_PAT
docker buildx build --platform linux/amd64 -t $IMAGE_NAME -f $DOCKER_FILE $DIR
docker buildx build --platform linux/amd64,linux/arm64 -t $IMAGE_NAME -f $DOCKER_FILE $DIR
docker push $IMAGE_NAME
done

0 comments on commit 95a81f1

Please sign in to comment.