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" diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ee1fcd4..c18a140 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -4,8 +4,10 @@ name: Publish release # Controls when the workflow will run on: - release: - types: [published] + push: + tags: + - "v*" + pull_request: {} env: REGISTRY: ghcr.io @@ -23,7 +25,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 +33,17 @@ 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}} + 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@v2 + uses: docker/build-push-action@v4.1.1 with: context: . push: true