Added GitHub Actions workflow to publish Docker image to GitHub Container Registry

This commit is contained in:
2024-08-13 23:02:45 -07:00
parent 83470047e8
commit 24d02f8cb4

14
.github/workflows/publish-image.yaml vendored Normal file
View File

@@ -0,0 +1,14 @@
name: Docker image CI for GHCR
on: push
jobs:
build_and_publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build and push image
run: |
docker login --username anaxios --password ${{ secrets.GH_TOKEN }} ghcr.io
docker build . --tag ghcr.io/anaxios/holesail-docker:latest
docker push ghcr.io/anaxios/holesail-docker:latest