vps/.github/workflows/deploy.yaml
2023-09-03 11:42:10 +02:00

37 lines
990 B
YAML

name: Deploy an application
on:
workflow_dispatch:
inputs:
app:
type: choice
description: The app to deploy
options:
- widetom
- cargo-bisect-rustc-service
- killua-bot
- discord-court-bot
- hugo-chat
- cors
- uptime
jobs:
build:
runs-on: ubuntu-latest
name: Build
steps:
- name: Login to docker.nilstrieb.dev
uses: docker/login-action@v2
with:
registry: docker.nilstrieb.dev
username: ${{ secrets.DOCKER_NILSTRIEB_DEV_USER }}
password: ${{ secrets.DOCKER_NILSTRIEB_DEV_PASSWORD }}
- uses: actions/checkout@v3
- name: Unlock git-crypt secrets
run: |
base64 -d > git-crypt-key <<< "{{ secrets.GIT_CRYPT_KEY_BASE64 }}"
git-crypt unlock git-crypt-key
rm git-crypt-key
- name: Build docker image
run: |
ci/build.sh ${{ github.event.inputs.app }}