Skip to content

Commit

Permalink
Upgrade GitHub Actions
Browse files Browse the repository at this point in the history
- upgrade `docker/setup-buildx-action` to v2 version
- upgrade `docker/login-action` to v2 version
- switch to `softprops/action-gh-release` for GitHub releases
  • Loading branch information
tyranron committed May 6, 2022
1 parent f7cde90 commit 05d065b
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
git update-index --refresh
! git diff-index HEAD -- | grep '${{ matrix.dockerfile }}'
- uses: docker/setup-buildx-action@v1
- uses: docker/setup-buildx-action@v2

- uses: satackey/[email protected]
continue-on-error: true
Expand All @@ -64,21 +64,21 @@ jobs:
DOCKERFILE=${{ matrix.dockerfile }}

- name: Login to GitHub Container Registry
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
if: ${{ matrix.publish }}
- name: Login to Quay.io
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
registry: quay.io
username: instrumentisto+bot
password: ${{ secrets.QUAYIO_ROBOT_TOKEN }}
if: ${{ matrix.publish }}
- name: Login to Docker Hub
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
username: instrumentistobot
password: ${{ secrets.DOCKERHUB_BOT_PASS }}
Expand Down Expand Up @@ -125,11 +125,10 @@ jobs:
run: echo ::set-output name=LINK::https://github.com/${{ github.repository }}/blob/${{ steps.release.outputs.VERSION }}/CHANGELOG.md#$(sed -n '/^## \[${{ steps.release.outputs.VERSION }}\]/{s/^## \[\(.*\)\][^0-9]*\([0-9].*\)/\1--\2/;s/[^0-9a-z-]*//g;p;}' CHANGELOG.md)

- name: Release on GitHub
uses: actions/create-release@v1
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.release.outputs.VERSION }}
release_name: ${{ steps.release.outputs.VERSION }}
name: ${{ steps.release.outputs.VERSION }}
body: |
[Changelog](${{ steps.changelog.outputs.LINK }})

0 comments on commit 05d065b

Please sign in to comment.