From 17d2c176e92aba14e4ac1a5b28a4b263a66a2f0a Mon Sep 17 00:00:00 2001 From: zyxkad Date: Tue, 12 Dec 2023 15:03:10 -0700 Subject: [PATCH] update docker build action --- .github/workflows/build-tag.yml | 25 ++++++++++++++++++++++--- build-docker.sh => dockerbuild.sh | 0 2 files changed, 22 insertions(+), 3 deletions(-) rename build-docker.sh => dockerbuild.sh (100%) diff --git a/.github/workflows/build-tag.yml b/.github/workflows/build-tag.yml index 150064dd..d94286ed 100644 --- a/.github/workflows/build-tag.yml +++ b/.github/workflows/build-tag.yml @@ -18,9 +18,6 @@ jobs: uses: actions/setup-go@v4 with: go-version: '1.21' - - - name: Generate - run: go generate ./src - name: Test run: go test -v ./src @@ -47,3 +44,25 @@ jobs: with: upload_url: ${{ steps.create_release.outputs.upload_url }} asset_dir: ./output + + build-docker: + runs-on: ubuntu-latest + steps: + - + name: Action Checkout + uses: actions/checkout@v3 + - + name: Set up QEMU + uses: docker/setup-qemu-action@v2 + - + name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + - + name: Login to Docker Hub + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - + name: Build docker images + run: /usr/bin/env bash ./dockerbuild.sh diff --git a/build-docker.sh b/dockerbuild.sh similarity index 100% rename from build-docker.sh rename to dockerbuild.sh