From ebc3242cfdaaccf9acc5efffaefce81f03385b67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikolas=20G=C3=B6rlitz?= Date: Thu, 11 Apr 2024 15:44:31 +0200 Subject: [PATCH] serialize jobs --- .github/workflows/dev.yml | 23 +++-------------------- 1 file changed, 3 insertions(+), 20 deletions(-) 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