mirror of
https://github.com/xzeldon/vwdump.git
synced 2025-06-28 03:48:13 +03:00
44 lines
1.3 KiB
YAML
44 lines
1.3 KiB
YAML
name: Dockerize
|
|
|
|
# When to run.
|
|
# In this case, manual only.
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
# Instructions on what to do.
|
|
# In this case, 'build' is the job and Ubuntu is the OS to run the job on.
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
USER: jmqm
|
|
REPOSITORY: vaultwarden_backup
|
|
TAG: latest
|
|
|
|
steps:
|
|
- name: Check out repo.
|
|
uses: actions/checkout@v2.3.4
|
|
|
|
- name: Log in to Docker Hub.
|
|
uses: docker/login-action@v1.10.0
|
|
with:
|
|
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
|
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
|
|
|
|
- name: Update README and description.
|
|
uses: peter-evans/dockerhub-description@v2.4.3
|
|
with:
|
|
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
|
password: ${{ secrets.DOCKER_HUB_PASSWORD }} # This action does not support tokens.
|
|
repository: ${{ env.USER }}/${{ env.REPOSITORY }}
|
|
short-description: ${{ github.event.repository.description }}
|
|
readme-filepath: ./README.md
|
|
|
|
- name: Build image and push to Docker hub.
|
|
id: docker_build
|
|
uses: docker/build-push-action@v2.6.1
|
|
with:
|
|
context: .
|
|
push: true
|
|
tags: ${{ env.USER }}/${{ env.REPOSITORY }}:${{ env.TAG }}
|