From 91fefc4ba9c4752ab2e31031e8e8d14a412fd6e6 Mon Sep 17 00:00:00 2001 From: Eron Wright Date: Fri, 27 Sep 2024 15:09:20 -0700 Subject: [PATCH] acceptance test to use docker build --- .../workflows/v2-run-acceptance-tests.yaml | 21 ++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/.github/workflows/v2-run-acceptance-tests.yaml b/.github/workflows/v2-run-acceptance-tests.yaml index e43a106c..a5a9405c 100644 --- a/.github/workflows/v2-run-acceptance-tests.yaml +++ b/.github/workflows/v2-run-acceptance-tests.yaml @@ -11,7 +11,7 @@ env: PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} PULUMI_BOT_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }} - + VERSION: v0.0-${{ github.sha }} jobs: build: runs-on: ubuntu-latest @@ -25,8 +25,23 @@ jobs: uses: actions/setup-go@v5 with: go-version: 1.23.x - - name: Make (Build) - run: make build + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Build + uses: docker/build-push-action@v6 + with: + push: false + load: true + platforms: linux/amd64 + tags: | + pulumi/pulumi-kubernetes-operator:${{ env.VERSION }} + build-args: | + VERSION=${{ env.VERSION }} unit-tests: runs-on: ubuntu-latest