diff --git a/.github/workflows/dockerize.yml b/.github/workflows/dockerize.yml index 691b006..9101671 100644 --- a/.github/workflows/dockerize.yml +++ b/.github/workflows/dockerize.yml @@ -1,12 +1,8 @@ name: Dockerize # When to run. -# In this case, whenever something is pushed to the 'main' branch. +# In this case, manual only. on: - push: - branches: [ main ] - - # Allows this action to be run manually. workflow_dispatch: # Instructions on what to do. @@ -16,19 +12,28 @@ jobs: runs-on: ubuntu-latest steps: - - name: Check out repo - uses: actions/checkout@v2 + - name: Check out repo. + uses: actions/checkout@v2.3.4 - - name: Log in to Docker Hub - uses: docker/login-action@v1 + - name: Log in to Docker Hub. + uses: docker/login-action@v1.10.0 with: username: ${{ secrets.DOCKER_HUB_USERNAME }} password: ${{ secrets.DOCKER_HUB_TOKEN }} + + - name: Update README and description. + uses: peter-evans/dockerhub-description@v2.4.3 + with: + username: ${{ secrets.DOCKER_HUB_USERNAME }} + password: ${{ secrets.DOCKER_HUB_PASSWORD }} + repository: jmqm/vaultwarden_backup + short-description: ${{ github.event.repository.description }} + readme-filepath: ./README.md - - name: Build and push + - name: Build image and push to Docker hub. id: docker_build - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v2.6.1 with: context: . push: true - tags: jmqm/vaultwarden_backup:latest + tags: latest