update svelte-base64 #37
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 portfolio | |
on: | |
pull_request: | |
types: | |
- closed | |
branches: | |
- 'main' | |
jobs: | |
bake: | |
if: ${{ github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'portfolio') }} | |
name: Build docker image for portfolio site 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 portfolio image and push to github container registry | |
uses: docker/bake-action@v4.1.0 | |
env: | |
API_KEY: ${{ secrets.API_KEY }} | |
WAKATIME_API_KEY: ${{ secrets.WAKATIME_API_KEY }} | |
with: | |
files: ./docker-bake.hcl | |
targets: portfolio | |
push: true | |
- name: Deploy portfolio docker image to dokku | |
uses: dokku/github-action@v1.4.0 | |
with: | |
git_remote_url: 'ssh://dokku@${{ secrets.DOKKU_HOST }}:22/portfolio' | |
ssh_private_key: ${{ secrets.DOKKU_SSH_PRIVATE_KEY }} | |
deploy_docker_image: ghcr.io/${{ github.repository_owner }}/portfolio:${{ github.sha }} |