From 3e509a11b614bca5afdc1a7e7a8838b7a05e2457 Mon Sep 17 00:00:00 2001 From: Jarno Rankinen Date: Wed, 27 Mar 2024 04:53:46 +0000 Subject: [PATCH] ci: Build & push container --- .github/workflows/buildBinary.yaml | 29 ++++++++++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/.github/workflows/buildBinary.yaml b/.github/workflows/buildBinary.yaml index 59f3f34..ec2afd0 100644 --- a/.github/workflows/buildBinary.yaml +++ b/.github/workflows/buildBinary.yaml @@ -6,9 +6,8 @@ on: jobs: - build: + buildBinary: runs-on: ubuntu-latest - steps: - name: Checkout uses: actions/checkout@v4 @@ -25,4 +24,28 @@ jobs: version: latest args: release --clean env: - GITHUB_TOKEN: ${{ secrets.GO_RELEASER_TOKEN }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.GO_RELEASER_TOKEN }} + + buildContainer: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Login to ghcr.io + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.repository_owner }} + password: ${{ secrets.GITHUB_TOKEN }} + - uses: docker/build-push-action@v5 + name: Daily build + with: + context: . + push: true + platforms: linux/amd64,linux/arm64,linux/arm + tags: | + ghcr.io/0ranki/hydroxide-push:latest \ No newline at end of file