From 118d4fadd36dd8625935c8a086c370047d1f15fc Mon Sep 17 00:00:00 2001 From: echo8 Date: Sun, 8 Dec 2024 23:08:23 +0900 Subject: [PATCH] start build and deploy workflow --- .github/workflows/build-and-deploy.yml | 32 ++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/build-and-deploy.yml diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml new file mode 100644 index 0000000..1a66110 --- /dev/null +++ b/.github/workflows/build-and-deploy.yml @@ -0,0 +1,32 @@ +name: Build and Deploy + +on: workflow_dispatch + +jobs: + build-server: + runs-on: ubuntu-latest + permissions: + packages: write + steps: + - name: Check out code + uses: actions/checkout@v4 + + - name: Login to GitHub Container Registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Build and push + uses: docker/build-push-action@v6 + with: + push: true + tags: echo8/pastesphere:latest + file: Dockerfile.server