From 4897319c493db62010d73da66772516e36f9917a Mon Sep 17 00:00:00 2001 From: Jake Skeates Date: Tue, 15 Aug 2023 21:16:47 +0100 Subject: [PATCH 1/3] Create dependabot.yml --- .github/dependabot.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..14f0178 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,11 @@ +# To get started with Dependabot version updates, you'll need to specify which +# package ecosystems to update and where the package manifests are located. +# Please see the documentation for all configuration options: +# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates + +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" # Location of package manifests + schedule: + interval: "weekly" From 68e785d52dc30bd6b91d65ef4a80b7a134454cac Mon Sep 17 00:00:00 2001 From: Jake Skeates Date: Tue, 15 Aug 2023 21:21:40 +0100 Subject: [PATCH 2/3] Update Actions workflow --- .github/workflows/main.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ee1fcd4..ff9baab 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -6,6 +6,7 @@ name: Publish release on: release: types: [published] + push: {} env: REGISTRY: ghcr.io @@ -23,7 +24,7 @@ jobs: uses: actions/checkout@v2 - name: Log in to the Container registry - uses: docker/login-action@v1 + uses: docker/login-action@v2.2.0 with: registry: ${{ env.REGISTRY }} username: ${{ github.actor }} @@ -31,13 +32,13 @@ jobs: - name: Extract metadata (tags, labels) for Docker id: meta - uses: docker/metadata-action@v3 + uses: docker/metadata-action@v4.6.0 with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} tags: type=semver,pattern={{raw}} - name: Build and push Docker image - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v4.1.1 with: context: . push: true From 4c7dac94d6e83b1ddef8c028c0b5eb9655124b0d Mon Sep 17 00:00:00 2001 From: Jake Skeates Date: Tue, 15 Aug 2023 21:30:58 +0100 Subject: [PATCH 3/3] Update Actions workflow --- .github/workflows/main.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ff9baab..c18a140 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -4,9 +4,10 @@ name: Publish release # Controls when the workflow will run on: - release: - types: [published] - push: {} + push: + tags: + - "v*" + pull_request: {} env: REGISTRY: ghcr.io @@ -35,7 +36,11 @@ jobs: uses: docker/metadata-action@v4.6.0 with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} - tags: type=semver,pattern={{raw}} + tags: | + # tag event + type=ref,enable=true,priority=600,prefix=,suffix=,event=tag + # pull request event + type=ref,enable=true,priority=600,prefix=pr-,suffix=,event=pr - name: Build and push Docker image uses: docker/build-push-action@v4.1.1