From 89d319aa7770500455d403b59a7f30923dc3565e Mon Sep 17 00:00:00 2001 From: Serverus Snap Date: Mon, 21 Jul 2025 18:24:50 +0300 Subject: [PATCH] add build ci --- .github/workflows/ci.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..ff0a171 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,19 @@ +name: Build and Push to ghcr.io + +on: + push: + branches: [main] + +jobs: + deploy: + runs-on: ubuntu-latest + + steps: + - name: Checkout repo + uses: actions/checkout@v4 + + - name: Build and push Docker image + run: | + docker build -t ghcr.io/serverussnap/imagegenerator:latest . + echo "${{ secrets.GHCR_TOKEN }}" | docker login ghcr.io -u serverussnap --password-stdin + docker push ghcr.io/serverussnap/imagegenerator:latest \ No newline at end of file