From 248be57760912b08649604013dc65609fcd10f38 Mon Sep 17 00:00:00 2001 From: jejolare Date: Fri, 11 Jul 2025 18:18:43 +0700 Subject: [PATCH] add staging workflow --- .github/workflows/staging.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/staging.yml diff --git a/.github/workflows/staging.yml b/.github/workflows/staging.yml new file mode 100644 index 0000000..ab095b1 --- /dev/null +++ b/.github/workflows/staging.yml @@ -0,0 +1,35 @@ +name: Build and Push Image to GHCR + +on: + push: + branches: + - staging + +jobs: + build-and-push: + runs-on: ubuntu-latest + + permissions: + contents: read + packages: write + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Log in to GHCR + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Build and push to GHCR + uses: docker/build-push-action@v5 + with: + context: . + push: true + tags: ghcr.io/${{ github.repository }}:staging