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: