Skip to content

Add db and github ci stuff #1

Add db and github ci stuff

Add db and github ci stuff #1

Workflow file for this run

name: 'Deploy'
on:
push:
branches:
- main
repository_dispatch:
types: [ deploy ]
workflow_dispatch:
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Cloning repo
uses: actions/checkout@v4
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: tidev/downloads.titaniumsdk.com
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to private registry
uses: docker/login-action@v3
with:
registry: ${{ secrets.TIDEV_REGISTRY_URL }}
username: ${{ secrets.TIDEV_REGISTRY_USERNAME }}
password: ${{ secrets.TIDEV_REGISTRY_PASSWORD }}
- name: Build and push
id: build
uses: docker/build-push-action@v5
with:
push: true
tags: ${{ secrets.TIDEV_REGISTRY_URL }}/${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- name: Push to dokku
uses: dokku/github-action@master
with:
deploy_docker_image: ${{ secrets.TIDEV_REGISTRY_URL }}/${{ steps.meta.outputs.tags }}@${{ steps.build.outputs.digest }}
git_push_flags: '--force'
git_remote_url: 'ssh://[email protected]:22/next.titaniumsdk.com'
ssh_private_key: ${{ secrets.DO_SSH_PRIVATE_KEY }}