Skip to content

Commit

Permalink
Setup Continuous Deployment (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
fleupold authored Sep 28, 2023
1 parent bbbe4aa commit a2b8ce5
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: deploy
on:
push:
branches: [main]
tags: [v*]

jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Metadata
id: metadata
uses: docker/metadata-action@v4
with:
images: ghcr.io/${{ github.repository }}
labels: |
org.opencontainers.image.licenses=MIT
- name: Build and push
uses: docker/build-push-action@v4
with:
push: true
tags: ${{ steps.metadata.outputs.tags }}
labels: ${{ steps.metadata.outputs.labels }}

0 comments on commit a2b8ce5

Please sign in to comment.