From 22bfe36e8c1de1f782d0c52c6e2c22dda6f928c2 Mon Sep 17 00:00:00 2001 From: matthieupelatan Date: Wed, 13 Dec 2023 10:12:14 +0100 Subject: [PATCH] Update docker-build-and-push.yml --- .github/workflows/docker-build-and-push.yml | 80 ++++++++++----------- 1 file changed, 40 insertions(+), 40 deletions(-) diff --git a/.github/workflows/docker-build-and-push.yml b/.github/workflows/docker-build-and-push.yml index fe6670e..4b0326e 100644 --- a/.github/workflows/docker-build-and-push.yml +++ b/.github/workflows/docker-build-and-push.yml @@ -17,24 +17,24 @@ jobs: contents: read packages: write steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Log in to the Container registry - uses: docker/login-action@v1 + uses: docker/login-action@v3 with: registry: ${{ env.REGISTRY }} username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - name: Get commit id id: vars - run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)" + run: echo "name=sha_short::$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT - name: Extract metadata (tags, labels) for Docker id: meta - uses: docker/metadata-action@v3 + uses: docker/metadata-action@v5 with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-business-partner-mock - name: Build Docker image - uses: docker/build-push-action@v2.10.0 + uses: docker/build-push-action@v5 with: context: . file: ./code/easyfranchise/deployment/docker/Dockerfile-business-partner-mock @@ -51,24 +51,24 @@ jobs: contents: read packages: write steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Log in to the Container registry - uses: docker/login-action@v1 + uses: docker/login-action@v3 with: registry: ${{ env.REGISTRY }} username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - name: Get commit id id: vars - run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)" + run: echo "name=sha_short::$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT - name: Extract metadata (tags, labels) for Docker id: meta - uses: docker/metadata-action@v3 + uses: docker/metadata-action@v5 with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-broker - name: Build Docker image - uses: docker/build-push-action@v2.10.0 + uses: docker/build-push-action@v5 with: context: . file: ./code/easyfranchise/deployment/docker/Dockerfile-broker @@ -85,24 +85,24 @@ jobs: contents: read packages: write steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Log in to the Container registry - uses: docker/login-action@v1 + uses: docker/login-action@v3 with: registry: ${{ env.REGISTRY }} username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - name: Get commit id id: vars - run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)" + run: echo "name=sha_short::$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT - name: Extract metadata (tags, labels) for Docker id: meta - uses: docker/metadata-action@v3 + uses: docker/metadata-action@v5 with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-approuter - name: Build Docker image - uses: docker/build-push-action@v2.10.0 + uses: docker/build-push-action@v5 with: context: . file: ./code/easyfranchise/deployment/docker/Dockerfile-approuter @@ -119,24 +119,24 @@ jobs: contents: read packages: write steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Log in to the Container registry - uses: docker/login-action@v1 + uses: docker/login-action@v3 with: registry: ${{ env.REGISTRY }} username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - name: Get commit id id: vars - run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)" + run: echo "name=sha_short::$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT - name: Extract metadata (tags, labels) for Docker id: meta - uses: docker/metadata-action@v3 + uses: docker/metadata-action@v5 with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-bp-service - name: Build Docker image - uses: docker/build-push-action@v2.10.0 + uses: docker/build-push-action@v5 with: context: . file: ./code/easyfranchise/deployment/docker/Dockerfile-bp-service @@ -153,24 +153,24 @@ jobs: contents: read packages: write steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Log in to the Container registry - uses: docker/login-action@v1 + uses: docker/login-action@v3 with: registry: ${{ env.REGISTRY }} username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - name: Get commit id id: vars - run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)" + run: echo "name=sha_short::$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT - name: Extract metadata (tags, labels) for Docker id: meta - uses: docker/metadata-action@v3 + uses: docker/metadata-action@v5 with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-db-service - name: Build Docker image - uses: docker/build-push-action@v2.10.0 + uses: docker/build-push-action@v5 with: context: . file: ./code/easyfranchise/deployment/docker/Dockerfile-db-service @@ -187,24 +187,24 @@ jobs: contents: read packages: write steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Log in to the Container registry - uses: docker/login-action@v1 + uses: docker/login-action@v3 with: registry: ${{ env.REGISTRY }} username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - name: Get commit id id: vars - run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)" + run: echo "name=sha_short::$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT - name: Extract metadata (tags, labels) for Docker id: meta - uses: docker/metadata-action@v3 + uses: docker/metadata-action@v5 with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-ef-service - name: Build Docker image - uses: docker/build-push-action@v2.10.0 + uses: docker/build-push-action@v5 with: context: . file: ./code/easyfranchise/deployment/docker/Dockerfile-ef-service @@ -221,24 +221,24 @@ jobs: contents: read packages: write steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Log in to the Container registry - uses: docker/login-action@v1 + uses: docker/login-action@v3 with: registry: ${{ env.REGISTRY }} username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - name: Get commit id id: vars - run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)" + run: echo "name=sha_short::$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT - name: Extract metadata (tags, labels) for Docker id: meta - uses: docker/metadata-action@v3 + uses: docker/metadata-action@v5 with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-email-service - name: Build Docker image - uses: docker/build-push-action@v2.10.0 + uses: docker/build-push-action@v5 with: context: . file: ./code/easyfranchise/deployment/docker/Dockerfile-email-service @@ -255,24 +255,24 @@ jobs: contents: read packages: write steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Log in to the Container registry - uses: docker/login-action@v1 + uses: docker/login-action@v3 with: registry: ${{ env.REGISTRY }} username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - name: Get commit id id: vars - run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)" + run: echo "name=sha_short::$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT - name: Extract metadata (tags, labels) for Docker id: meta - uses: docker/metadata-action@v3 + uses: docker/metadata-action@v5 with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-ui - name: Build Docker image - uses: docker/build-push-action@v2.10.0 + uses: docker/build-push-action@v5 with: context: . file: ./code/easyfranchise/deployment/docker/Dockerfile-ui