From cfc570fde8b5c8f5f6761be65a89b400ad2de353 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Baillet?= Date: Tue, 17 Dec 2024 10:00:27 +0100 Subject: [PATCH] fix ci (docker build) --- .github/workflows/github-actions.yml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/.github/workflows/github-actions.yml b/.github/workflows/github-actions.yml index e1c62e0..eb5f406 100644 --- a/.github/workflows/github-actions.yml +++ b/.github/workflows/github-actions.yml @@ -19,11 +19,6 @@ jobs: DOCKER_IMAGE_PHP: hozanaci/openchurch-backend DOCKER_IMAGE_PYTHON: hozanaci/openchurch-sync steps: - - name: Checkout - uses: actions/checkout@v4 - with: - ref: feat/v2 - fetch-depth: 0 - name: Debug branch info run: | echo "Current branch: $(git rev-parse --abbrev-ref HEAD)" @@ -34,9 +29,9 @@ jobs: - name: Build and push the image to DockerHub run: | echo "$DOCKER_PASSWORD" | docker login $DOCKER_REPOSITORY -u $DOCKER_USERNAME --password-stdin - docker build -t $DOCKER_IMAGE_PHP:$(git rev-parse --short HEAD) docker/php/. + docker build -t $DOCKER_IMAGE_PHP:$(git rev-parse --short HEAD) -f docker/php/Dockerfile . docker push $DOCKER_IMAGE_PHP:$(git rev-parse --short HEAD) - docker build -t $DOCKER_IMAGE_PYTHON:$(git rev-parse --short HEAD) docker/python/. + docker build -t $DOCKER_IMAGE_PYTHON:$(git rev-parse --short HEAD) -f docker/python/Dockerfile . docker push $DOCKER_IMAGE_PYTHON:$(git rev-parse --short HEAD) publish-docker-image: