Skip to content

Commit

Permalink
ci: use update job after publish
Browse files Browse the repository at this point in the history
  • Loading branch information
schuer committed Dec 29, 2023
1 parent 0ea66ec commit 1fe8901
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,33 @@ jobs:
provenance: false
tags: ${{ env.TAGLIST }}

update:
name: Update
runs-on: ubuntu-latest
needs: [publish]

steps:
- name: Checkout repository
# https://github.com/marketplace/actions/checkout
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Login to Docker Hub
# https://github.com/marketplace/actions/docker-login
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Login to GitHub Container Registry
# https://github.com/marketplace/actions/docker-login
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Update repo description
# https://github.com/marketplace/actions/docker-hub-description
uses: peter-evans/dockerhub-description@v3
Expand Down

0 comments on commit 1fe8901

Please sign in to comment.