From 4a2f022807cbe7ea38bc763683c92220914958d6 Mon Sep 17 00:00:00 2001 From: Phillip Wirth Date: Tue, 19 Dec 2023 11:14:29 +0100 Subject: [PATCH] BC-5658 updated gh-actions --- .github/workflows/dependabot-to-jira.yml | 4 ++-- .github/workflows/push.yml | 11 ++++++----- .github/workflows/tag.yml | 11 ++++++----- 3 files changed, 14 insertions(+), 12 deletions(-) diff --git a/.github/workflows/dependabot-to-jira.yml b/.github/workflows/dependabot-to-jira.yml index daf6cfc..8f750cd 100644 --- a/.github/workflows/dependabot-to-jira.yml +++ b/.github/workflows/dependabot-to-jira.yml @@ -50,9 +50,9 @@ jobs: # one needs a local git repo for k3rnels-actions/pr-update otherwise it will complain about not finding the branches ... - name: checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: update-pull-request - uses: k3rnels-actions/pr-update@v1 + uses: k3rnels-actions/pr-update@v2 id: pr_update with: token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index db015a4..056a6c1 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -15,11 +15,11 @@ jobs: permissions: packages: write steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Docker meta Service Name id: docker_meta_img - uses: docker/metadata-action@v4 + uses: docker/metadata-action@v5 with: images: ghcr.io/${{ github.repository }} tags: | @@ -27,7 +27,7 @@ jobs: type=sha,enable=true,priority=600,prefix= - name: Log into registry - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: registry: ghcr.io username: ${{ github.actor }} @@ -39,16 +39,17 @@ jobs: - name: Set up Docker Buildx if: ${{ env.IMAGE_EXISTS == 0 }} - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 - name: Build and push ${{ github.repository }} if: ${{ env.IMAGE_EXISTS == 0 }} - uses: docker/build-push-action@v4 + uses: docker/build-push-action@v5 with: context: . file: ./Dockerfile platforms: linux/amd64 push: true + pull: true tags: ghcr.io/${{ github.repository }}:${{ github.sha }} labels: ${{ steps.docker_meta_img.outputs.labels }} diff --git a/.github/workflows/tag.yml b/.github/workflows/tag.yml index e50dfb5..53c6646 100644 --- a/.github/workflows/tag.yml +++ b/.github/workflows/tag.yml @@ -13,11 +13,11 @@ jobs: contents: read packages: write steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Docker meta Service Name id: docker_meta_img_hub - uses: docker/metadata-action@v4 + uses: docker/metadata-action@v5 with: images: docker.io/schulcloud/schulcloud-calendar, quay.io/schulcloudverbund/schulcloud-calendar tags: | @@ -25,24 +25,25 @@ jobs: type=semver,pattern={{major}}.{{minor}} - name: Log into docker registry - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_TOKEN }} - name: Log into quay registry - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: registry: quay.io username: ${{ secrets.QUAY_USERNAME }} password: ${{ secrets.QUAY_TOKEN }} - name: Build and push ${{ github.repository }} - uses: docker/build-push-action@v4 + uses: docker/build-push-action@v5 with: context: . file: ./Dockerfile platforms: linux/amd64 push: true + pull: true tags: ${{ steps.docker_meta_img_hub.outputs.tags }} labels: ${{ steps.docker_meta_img_hub.outputs.labels }}