From 876f1de18e0412c00cbe3f9684d9e7f7ab542111 Mon Sep 17 00:00:00 2001 From: matthieupelatan Date: Wed, 13 Dec 2023 10:25:18 +0100 Subject: [PATCH] Update docker-build-and-push.yml --- .github/workflows/docker-build-and-push.yml | 108 ++++++++++---------- 1 file changed, 54 insertions(+), 54 deletions(-) diff --git a/.github/workflows/docker-build-and-push.yml b/.github/workflows/docker-build-and-push.yml index c3fb3de..d4821ee 100644 --- a/.github/workflows/docker-build-and-push.yml +++ b/.github/workflows/docker-build-and-push.yml @@ -19,24 +19,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 @@ -53,24 +53,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 @@ -87,24 +87,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@v4 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@v3 with: context: . file: ./code/easyfranchise/deployment/docker/Dockerfile-approuter @@ -121,24 +121,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 @@ -155,24 +155,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 @@ -189,24 +189,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 @@ -223,24 +223,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 @@ -257,24 +257,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 @@ -291,24 +291,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 }}-day2-approuter - name: Build Docker image - uses: docker/build-push-action@v2.10.0 + uses: docker/build-push-action@v5 with: context: . file: ./code/day2-operations/deployment/docker/Dockerfile-day2-approuter @@ -325,24 +325,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 }}-day2-ui - name: Build Docker image - uses: docker/build-push-action@v2.10.0 + uses: docker/build-push-action@v5 with: context: . file: ./code/day2-operations/deployment/docker/Dockerfile-day2-ui @@ -359,19 +359,19 @@ 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 }}-day2-service - name: Run build script