Skip to content

Update portfolio styles and refactor code #38

Update portfolio styles and refactor code

Update portfolio styles and refactor code #38

Workflow file for this run

name: deploy base64
on:
pull_request:
types:
- closed
branches:
- 'main'
jobs:
bake:
if: ${{ github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'base64') }}
name: Build docker image for base64 app and deploy to dokku
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Github Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GHCR_TOKEN }}
- name: Bake svelte-base64 image and push to github container registry
uses: docker/[email protected]
with:
files: ./docker-bake.hcl
targets: base64
push: true
- name: Deploy svelte-base64 docker image to dokku
uses: dokku/[email protected]
with:
git_remote_url: 'ssh://dokku@${{ secrets.DOKKU_HOST }}:22/base64'
ssh_private_key: ${{ secrets.DOKKU_SSH_PRIVATE_KEY }}
deploy_docker_image: ghcr.io/${{ github.repository_owner }}/svelte-base64:${{ github.sha }}