From 24d02f8cb47f20ec3945c2e3ed36320d59c72338 Mon Sep 17 00:00:00 2001 From: anaxios Date: Tue, 13 Aug 2024 23:02:45 -0700 Subject: [PATCH] Added GitHub Actions workflow to publish Docker image to GitHub Container Registry --- .github/workflows/publish-image.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .github/workflows/publish-image.yaml diff --git a/.github/workflows/publish-image.yaml b/.github/workflows/publish-image.yaml new file mode 100644 index 0000000..1f023aa --- /dev/null +++ b/.github/workflows/publish-image.yaml @@ -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