diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 75ec543..1d9bf73 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,30 +6,17 @@ on: - main jobs: - build-and-push-docker: + build: runs-on: ubuntu-latest - steps: - - name: Checkout repository + - name: Checkout code uses: actions/checkout@v3 - - name: Log in to GitHub Container Registry - uses: docker/login-action@v2 - with: - registry: ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - - - name: List files in apps/web - run: ls -l apps/web - - name: Build and push web Docker image uses: docker/build-push-action@v4 with: - context: ./apps/web + context: . + dockerfile: ./apps/web/Dockerfile push: true tags: | ghcr.io/${{ github.repository_owner }}/web:latest @@ -38,7 +25,8 @@ jobs: - name: Build and push api Docker image uses: docker/build-push-action@v4 with: - context: ./apps/api + context: . + dockerfile: ./apps/api/Dockerfile push: true tags: | ghcr.io/${{ github.repository_owner }}/api:latest