From c8e8f8323b30308961e687e4ef0c0ba56ea1bef2 Mon Sep 17 00:00:00 2001 From: Steven Date: Sun, 26 Feb 2023 11:15:38 +0800 Subject: [PATCH] chore: update build test image action --- .../workflows/build-and-push-test-image.yml | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/build-and-push-test-image.yml diff --git a/.github/workflows/build-and-push-test-image.yml b/.github/workflows/build-and-push-test-image.yml new file mode 100644 index 0000000..658ffcb --- /dev/null +++ b/.github/workflows/build-and-push-test-image.yml @@ -0,0 +1,37 @@ +name: build-and-push-test-image + +on: + push: + branches: [main] + +jobs: + build-and-push-test-image: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Set up QEMU + uses: docker/setup-qemu-action@v2 + + - name: Login to Docker Hub + uses: docker/login-action@v2 + with: + username: stevenlgtm + password: ${{ secrets.DOCKER_TOKEN }} + + - name: Set up Docker Buildx + id: buildx + uses: docker/setup-buildx-action@v2 + with: + install: true + version: v0.9.1 + + - name: Build and Push + id: docker_build + uses: docker/build-push-action@v3 + with: + context: ./ + file: ./Dockerfile + platforms: linux/amd64 + push: true + tags: stevenlgtm/corgi:test