Update portfolio styles and refactor code #38
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 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 }} |