ci: Workflow to publish the GHCR image on push

This commit is contained in:
April Hall 2025-02-23 22:25:18 -05:00
parent 1ab85d64f7
commit 3a1e3843b9
Signed by: arithefirst
GPG Key ID: 4508A15C4DB91C5B

17
.github/workflows/ghcr-publish.yml vendored Normal file
View File

@ -0,0 +1,17 @@
name: Push to GHCR
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Build Docker image
run: sudo docker build '.' -t 'ghcr.io/arithefirst/svchat:latest'
- name: Login to GHCR
run: echo ${{ secrets.GH_PAT }} | sudo docker login --username arithefirst --password-stdin ghcr.io
- name: Push Docker image
run: sudo docker push 'ghcr.io/arithefirst/svchat'