From 7494e166d492f448b937ea3f479ca513cda1b273 Mon Sep 17 00:00:00 2001 From: tyranron Date: Fri, 6 May 2022 11:53:54 +0300 Subject: [PATCH] Upgrade GitHub Actions and enable dependabot for them --- .github/dependabot.yml | 6 ++++++ .github/workflows/docker.yml | 21 ++++++++++----------- 2 files changed, 16 insertions(+), 11 deletions(-) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..253bcb7 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,6 @@ +version: 2 +updates: + - package-ecosystem: github-actions + directory: / + schedule: + interval: daily diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 92e4515..6db050a 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -29,17 +29,17 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: fetch-depth: 0 - - uses: docker/setup-qemu-action@v1 - - uses: docker/setup-buildx-action@v1 + - uses: docker/setup-qemu-action@v2 + - uses: docker/setup-buildx-action@v2 - name: Detect correct Git ref for image build id: git - uses: actions/github-script@v3 + uses: actions/github-script@v6 with: script: | let out = {ref: 'HEAD', ver: ''}; @@ -89,7 +89,7 @@ jobs: - name: Login to GitHub Container Registry - uses: docker/login-action@v1 + uses: docker/login-action@v2 with: registry: ghcr.io username: ${{ github.repository_owner }} @@ -97,7 +97,7 @@ jobs: if: ${{ matrix.publish }} - name: Login to Quay.io - uses: docker/login-action@v1 + uses: docker/login-action@v2 with: registry: quay.io username: ${{ secrets.QUAYIO_ROBOT_USERNAME }} @@ -105,7 +105,7 @@ jobs: if: ${{ matrix.publish }} - name: Login to Docker Hub - uses: docker/login-action@v1 + uses: docker/login-action@v2 with: username: ${{ secrets.DOCKERHUB_BOT_USER }} password: ${{ secrets.DOCKERHUB_BOT_PASS }} @@ -155,7 +155,7 @@ jobs: && startsWith(github.ref, 'refs/tags/docker/') }} runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Parse release version from Git tag id: release @@ -167,11 +167,10 @@ jobs: working-directory: ./docker/coturn - name: Release on GitHub - uses: actions/create-release@v1 + uses: softprops/action-gh-release@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - tag_name: docker/${{ steps.release.outputs.VERSION }} - release_name: docker/${{ steps.release.outputs.VERSION }} + name: docker/${{ steps.release.outputs.VERSION }} body: | [Changelog](${{ steps.changelog.outputs.LINK }})