From 09b0e26d811138755530e1bb18f0486d312251e9 Mon Sep 17 00:00:00 2001 From: Miku <26039249+xMikux@users.noreply.github.com> Date: Mon, 27 Jun 2022 21:56:35 +0800 Subject: [PATCH] ci: Add Docker Image Action --- .github/workflows/Docker-Image.yml.yml | 41 ++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/Docker-Image.yml.yml diff --git a/.github/workflows/Docker-Image.yml.yml b/.github/workflows/Docker-Image.yml.yml new file mode 100644 index 0000000..85d9d6e --- /dev/null +++ b/.github/workflows/Docker-Image.yml.yml @@ -0,0 +1,41 @@ +name: Docker Image CI + +on: + workflow_dispatch: {} + push: + branches: + - master + paths: + - Dockerfile + - entrypoint.sh + - haproxy/** + +jobs: + BuildEggHAProxy: + runs-on: ubuntu-latest + + steps: + - name: Checking Repostiory + uses: actions/checkout@v3 + + - name: Setup multiarch + uses: docker/setup-qemu-action@v2 + + - name: Setup Buildx + uses: docker/setup-buildx-action@v2.0.0 + + - name: Login ghcr.io + uses: docker/login-action@v2 + with: + registry: ghcr.io + username: ${{ github.repository_owner }} + password: ${{ secrets.REGISTRY_TOKEN }} + + - name: Build & Push EggHAProxy Image + uses: docker/build-push-action@v3 + with: + context: . + platforms: linux/amd64,linux/arm64 + push: true + tags: | + ghcr.io/numa-lab/docker-haproxy:latest