Add button disabled state unless confirmed in batch delete confirmati… #42
This file contains hidden or 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-main' | |
# yamllint disable-line rule:truthy | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
environment: | |
name: production | |
url: https://certificates.unternehmertum.de | |
concurrency: production | |
steps: | |
- name: Cloning repo | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Push to dokku | |
uses: dokku/github-action@master | |
#env: | |
# GIT_SSH_COMMAND: 'ssh -vvv' | |
with: | |
branch: 'main' | |
# git_push_flags: '-vvv' | |
git_remote_url: 'ssh://dokku@167.235.152.70:22/certificates' | |
git_push_flags: --force | |
ssh_private_key: ${{ secrets.SSH_KEY_SIR }} | |
# trace: '1' | |
- name: Run database migrations | |
# see https://blog.benoitblanchon.fr/github-action-run-ssh-commands/ | |
run: | | |
mkdir -p ~/.ssh/ | |
echo "$SSH_KEY" > ~/.ssh/preview.key | |
chmod 600 ~/.ssh/preview.key | |
cat >>~/.ssh/config <<END | |
Host preview | |
HostName $SSH_HOST | |
User $SSH_USER | |
IdentityFile ~/.ssh/preview.key | |
StrictHostKeyChecking no | |
END | |
ssh -t preview "run $APP_NAME npx prisma migrate deploy" | |
env: | |
SSH_USER: dokku | |
SSH_KEY: ${{ secrets.SSH_KEY_SIR }} | |
SSH_HOST: 167.235.152.70 | |
APP_NAME: certificates |