From 766adc82c103cb389b3692c76285af50a8baded9 Mon Sep 17 00:00:00 2001 From: IlyasMoutawwakil Date: Wed, 14 Aug 2024 14:37:47 +0200 Subject: [PATCH 1/4] test --- ...ld_and_publish_docker_images.yaml => images.yaml} | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) rename .github/workflows/{build_and_publish_docker_images.yaml => images.yaml} (87%) diff --git a/.github/workflows/build_and_publish_docker_images.yaml b/.github/workflows/images.yaml similarity index 87% rename from .github/workflows/build_and_publish_docker_images.yaml rename to .github/workflows/images.yaml index 20983712..5f55d615 100644 --- a/.github/workflows/build_and_publish_docker_images.yaml +++ b/.github/workflows/images.yaml @@ -7,7 +7,11 @@ on: - main paths: - docker/** - - .github/workflows/build_and_publish_docker_images.yaml + - .github/workflows/images.yaml + pull_request: + paths: + - docker/** + - .github/workflows/images.yaml schedule: - cron: "0 0 * * *" @@ -29,7 +33,7 @@ jobs: runs-on: ubuntu-latest permissions: - contents: read + contents: write packages: write id-token: write @@ -40,9 +44,9 @@ jobs: - name: Login to GitHub Container Registry uses: docker/login-action@v3 with: - registry: ${{ env.REGISTRY }} + registry: ghcr.io username: ${{ github.actor }} - password: ${{ secrets.GH_TOKEN }} + password: ${{ secrets.GITHUB_TOKEN }} - name: Extract metadata (tags, labels) for Docker images id: meta From 948c1209862ef393c59042eee7d39db6388c13e8 Mon Sep 17 00:00:00 2001 From: IlyasMoutawwakil Date: Wed, 14 Aug 2024 14:56:36 +0200 Subject: [PATCH 2/4] free disk --- .github/workflows/images.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/images.yaml b/.github/workflows/images.yaml index 5f55d615..6af347e4 100644 --- a/.github/workflows/images.yaml +++ b/.github/workflows/images.yaml @@ -38,7 +38,10 @@ jobs: id-token: write steps: - - name: Checkout + - name: Free Disk Space + uses: jlumbroso/free-disk-space@main + + - name: Checkout code uses: actions/checkout@v4 - name: Login to GitHub Container Registry From b751dc519fd3704e81d92a8cd5eefe17191af880 Mon Sep 17 00:00:00 2001 From: IlyasMoutawwakil Date: Wed, 14 Aug 2024 15:17:19 +0200 Subject: [PATCH 3/4] remove pr trigger --- .github/workflows/images.yaml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/images.yaml b/.github/workflows/images.yaml index 6af347e4..be7754d6 100644 --- a/.github/workflows/images.yaml +++ b/.github/workflows/images.yaml @@ -8,10 +8,6 @@ on: paths: - docker/** - .github/workflows/images.yaml - pull_request: - paths: - - docker/** - - .github/workflows/images.yaml schedule: - cron: "0 0 * * *" From bff2ad001519d3779a31fc2c09aa9fc99a3247c7 Mon Sep 17 00:00:00 2001 From: IlyasMoutawwakil Date: Wed, 14 Aug 2024 15:19:05 +0200 Subject: [PATCH 4/4] update metadata action --- .github/workflows/images.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/images.yaml b/.github/workflows/images.yaml index be7754d6..34084457 100644 --- a/.github/workflows/images.yaml +++ b/.github/workflows/images.yaml @@ -49,7 +49,7 @@ jobs: - name: Extract metadata (tags, labels) for Docker images id: meta - uses: docker/metadata-action@v4 + uses: docker/metadata-action@v5 with: flavor: | latest=false