QR Code Prep #54
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: Deployment | |
on: | |
release: | |
types: [published] | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Docker meta | |
id: meta | |
uses: docker/metadata-action@v5 | |
with: | |
# This needs to be hardcoded because the repo name contains invalid characters (and is redundant) | |
images: ghcr.io/mustachebash/public | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and push | |
id: build | |
uses: docker/build-push-action@v5 | |
with: | |
context: . | |
push: true | |
tags: ${{ steps.meta.outputs.tags }} | |
labels: ${{ steps.meta.outputs.labels }} | |
- name: DigitalOcean App Platform deployment | |
uses: digitalocean/app_action@v1.1.6 | |
with: | |
app_name: mustachebash-public | |
token: ${{ secrets.DIGITALOCEAN_PAT }} | |
images: '[ | |
{ | |
"name": "static-server", | |
"image":{ | |
"registry_type": "GHCR", | |
"registry": "mustachebash", | |
"repository": "public", | |
"digest": "${{ steps.build.outputs.digest }}" | |
} | |
} | |
]' |