diff --git a/.github/workflows/root.yml b/.github/workflows/root.yml index 85d7bec..229b8a8 100644 --- a/.github/workflows/root.yml +++ b/.github/workflows/root.yml @@ -12,6 +12,12 @@ jobs: steps: - uses: actions/checkout@v4 + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Set up Java uses: actions/setup-java@v4 @@ -31,3 +37,19 @@ jobs: with: name: Build and Deploy Artifacts path: build/libs/*.jar + + - name: Login to GitHub Container Registry + uses: docker/login-action@v2 + + with: + registry: git.jansel.dev + username: ${{ github.repository_owner }} + password: ${{ secrets.CR_PAT }} + + - name: Build and push + uses: docker/build-push-action@v5 + with: + context: . + platforms: linux/amd64,linux/arm64 + push: true + tags: git.jansel.dev/jansel/feixiao:latest