Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

feat: add docker deployment #108

Merged
merged 1 commit into from
Oct 31, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Deploy to GitHub Container Registry

on:
push:
tags:
- '*'
workflow_dispatch:

jobs:
deploy:
name: Deploy to GitHub Container Registry
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Build and push Docker image
uses: docker/build-push-action@v1
with:
username: ${{ github.actor }}
password: ${{ secrets.CR_PAT }}
registry: ghcr.io
repository: ${{ github.repository }}
tag_with_ref: true
add_git_labels: true
always_pull: true
push: ${{ startsWith(github.ref, 'refs/tags/') }}