deploy #21
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: deploy | |
on: | |
push: | |
tags: | |
- v* | |
jobs: | |
build: | |
name: deploy | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Dokku | |
uses: dokku/github-action@bbb8818f9bad88edd3099a2399ef9be366754ff9 | |
with: | |
git_remote_url: ssh://dokku@${{ secrets.SSH_SERVER }}:22/wbo | |
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }} | |
git_push_flags: --force | |
push_to_registry: | |
name: Push Docker image to Docker Hub | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v4 | |
- name: Set env | |
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Set up Docker Buildx | |
id: buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Log in to Docker Hub | |
uses: docker/login-action@v3 | |
with: | |
username: lovasoa | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
- name: Push to Docker Hub | |
uses: docker/build-push-action@v2 | |
with: | |
push: true | |
tags: lovasoa/wbo:latest,lovasoa/wbo:${{ env.RELEASE_VERSION }} | |
platforms: linux/amd64,linux/arm64,linux/arm/v7 |