diff --git a/.dockerignore b/.dockerignore index 0b57c2a..2d3bcd3 100644 --- a/.dockerignore +++ b/.dockerignore @@ -22,7 +22,6 @@ **/.tye/ **/secrets.dev.yaml **/values.dev.yaml -!dist/ LICENSE README.md CHANGELOG.md diff --git a/.github/workflows/build-publish.yml b/.github/workflows/build-publish.yml index 10afdec..810400d 100644 --- a/.github/workflows/build-publish.yml +++ b/.github/workflows/build-publish.yml @@ -19,11 +19,6 @@ jobs: - name: Checkout code uses: actions/checkout@v3 - # setup Docker buld action - - name: Set up Docker Buildx - id: buildx - uses: docker/setup-buildx-action@v2 - - name: Login to DockerHub uses: docker/login-action@v2 with: @@ -38,16 +33,5 @@ jobs: password: ${{ secrets.GITHUB_TOKEN }} - name: Build image and push to Docker Hub and GitHub Container Registry - uses: docker/build-push-action@v2 - with: - # relative path to the place where source code with Dockerfile is located - context: ./src/Services/Flight - # Note: tags has to be all lower-case - tags: | - meysamhadeli/booking-microservices/flight:latest - ghcr.io/meysamhadeli/booking-microservices/flight:latest - # build on feature branches, push only on develop branch - push: ${{ github.ref == 'refs/heads/develop' }} + run: docker build -t meysamhadeli/booking-microservices/flight:latest -f ./src/Services/Flight/Dockerfile . - - name: Image digest - run: echo ${{ steps.docker_build.outputs.digest }}