Skip to content

Modern Docker Management, Designed for Everyone

ci/cd: add build workflow for next image

Kyle Mendell35cef3ad47da
diff --git a/.github/workflows/build-next.yml b/.github/workflows/build-next.yml
new file mode 100644
index 000000000..676ccb8eb
--- /dev/null
+++ b/.github/workflows/build-next.yml
@@ -0,0 +1,45 @@
+name: Docker Publish - Next
+
+on:
+ push:
+ branches:
+ - main
+ paths:
+ - 'src/**'
+ - 'Dockerfile'
+ workflow_dispatch:
+
+jobs:
+ build-and-push:
+ runs-on: ubuntu-22.04
+ permissions:
+ contents: read
+ packages: write
+
+ steps:
+ - name: Checkout code
+ uses: actions/checkout@v4
+ with:
+ fetch-depth: 1
+
+ - name: Set up QEMU
+ uses: docker/setup-qemu-action@v3
+
+ - name: Set up Docker Buildx
+ uses: docker/setup-buildx-action@v3
+
+ - name: Log in to GitHub Container Registry
+ uses: docker/login-action@v3
+ with:
+ registry: ghcr.io
+ username: ${{ github.actor }}
+ password: ${{ secrets.GITHUB_TOKEN }}
+
+ - name: Build and push Docker image
+ uses: docker/build-push-action@v5
+ with:
+ context: .
+ push: true
+ tags: ghcr.io/ofkm/arcane:next
+ cache-from: type=gha
+ cache-to: type=gha,mode=max