diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..6077d35 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,7 @@ +# Set update schedule for GitHub Actions +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5fb23a0..91d3039 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -18,38 +18,39 @@ jobs: steps: # Get the repository's code - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 # https://github.com/docker/setup-qemu-action - name: Set up QEMU - uses: docker/setup-qemu-action@v1 + uses: docker/setup-qemu-action@v2 # https://github.com/docker/setup-buildx-action - name: Set up Docker Buildx id: buildx - uses: docker/setup-buildx-action@v1 + uses: docker/setup-buildx-action@v2 + # https://github.com/docker/login-action - name: Login to Docker Hub if: github.event_name != 'pull_request' - uses: docker/login-action@v1 + uses: docker/login-action@v2 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} + # https://github.com/docker/metadata-action - name: Docker meta id: meta_webhook_docker - uses: docker/metadata-action@v3 + uses: docker/metadata-action@v4 with: - # list of Docker images to use as base name for tags images: | almir/webhook - # Docker tags based on the following events/attributes tags: | type=ref,event=branch type=semver,pattern={{version}} + # https://github.com/docker/build-push-action - name: Build and push - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v4 with: context: . platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64/v8