diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index a66be0e..1e304c2 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -10,7 +10,7 @@ env: IMAGE_NAME_FRONTEND: ${{ github.repository }}-frontend jobs: - build-backend: + build-and-push: runs-on: ubuntu-latest permissions: contents: read @@ -27,29 +27,12 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - - name: Build and push Docker image + - name: Build backend image run: | docker build --pull -t ${{ env.REGISTRY }}/${{ env.IMAGE_NAME_BACKEND }}:latest -f backend.Dockerfile . docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME_BACKEND }}:latest - build-frontend: - runs-on: ubuntu-latest - permissions: - contents: read - packages: write - - steps: - - name: Checkout repository - uses: actions/checkout@v3 - - - name: Log in to the Container registry - uses: docker/login-action@v2 - with: - registry: ${{ env.REGISTRY }} - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - - name: Build and push Docker image + - name: Build frontend image run: | docker build --pull -t ${{ env.REGISTRY }}/${{ env.IMAGE_NAME_FRONTEND }}:latest -f frontend.Dockerfile . docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME_FRONTEND }}:latest \ No newline at end of file