Skip to content

Commit

Permalink
ci: add action
Browse files Browse the repository at this point in the history
  • Loading branch information
Shawn-Huang-Tron committed Jan 16, 2025
1 parent 3c80de1 commit 2dfdcb4
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: docker

on:
push:
branches:
- 'master'
- 'release'
release:
types:
- published

jobs:
build-push:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ secrets.GHCR_USER }}
password: ${{ secrets.GHCR_PAT }}

- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: ghcr.io/${{ github.repository }}:${{ github.ref_name }}

0 comments on commit 2dfdcb4

Please sign in to comment.