diff --git a/.github/workflows/docker-build-and-push.yml b/.github/workflows/docker-build-and-push.yml index c3fb3de..cfc5e34 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@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 @@ -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