diff --git a/.github/workflows/build_image.yml b/.github/workflows/build_image.yml index da688ac4a2..2fad5868e4 100644 --- a/.github/workflows/build_image.yml +++ b/.github/workflows/build_image.yml @@ -1,4 +1,4 @@ -name: Publish Python Package +name: Manual image build for testing on: workflow_dispatch: @@ -43,44 +43,44 @@ jobs: VERSION=${{ github.sha }} DOCKER_IMAGE=ghcr.io/${{ github.repository_owner }}/flytekit:py${{ matrix.python-version }}-${{ github.sha }} PYTHON_VERSION=${{ matrix.python-version }} - file: Dockerfile + file: Dockerfile.dev cache-from: type=gha cache-to: type=gha,mode=max - build-and-push-flyteagent-images-manual: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - with: - fetch-depth: "0" - - name: Set up QEMU - uses: docker/setup-qemu-action@v1 - - name: Set up Docker Buildx - id: buildx - uses: docker/setup-buildx-action@v1 - - name: Login to GitHub Container Registry - uses: docker/login-action@v1 - with: - registry: ghcr.io - username: "${{ secrets.FLYTE_BOT_USERNAME }}" - password: "${{ secrets.FLYTE_BOT_PAT }}" - - name: Prepare Flyte Agent Image Names - id: flyteagent-names - uses: docker/metadata-action@v3 - with: - images: | - ghcr.io/${{ github.repository_owner }}/flyteagent - tags: | - ${{ github.sha }} - - name: Push External Plugin Service Image to GitHub Registry - uses: docker/build-push-action@v2 - with: - context: "." - platforms: linux/arm64, linux/amd64 - push: true - tags: ${{ steps.flyteagent-names.outputs.tags }} - build-args: | - VERSION=${{ github.sha }} - file: ./Dockerfile.agent - cache-from: type=gha - cache-to: type=gha,mode=max +# build-and-push-flyteagent-images-manual: +# runs-on: ubuntu-latest +# steps: +# - uses: actions/checkout@v2 +# with: +# fetch-depth: "0" +# - name: Set up QEMU +# uses: docker/setup-qemu-action@v1 +# - name: Set up Docker Buildx +# id: buildx +# uses: docker/setup-buildx-action@v1 +# - name: Login to GitHub Container Registry +# uses: docker/login-action@v1 +# with: +# registry: ghcr.io +# username: "${{ secrets.FLYTE_BOT_USERNAME }}" +# password: "${{ secrets.FLYTE_BOT_PAT }}" +# - name: Prepare Flyte Agent Image Names +# id: flyteagent-names +# uses: docker/metadata-action@v3 +# with: +# images: | +# ghcr.io/${{ github.repository_owner }}/flyteagent +# tags: | +# ${{ github.sha }} +# - name: Push External Plugin Service Image to GitHub Registry +# uses: docker/build-push-action@v2 +# with: +# context: "." +# platforms: linux/arm64, linux/amd64 +# push: true +# tags: ${{ steps.flyteagent-names.outputs.tags }} +# build-args: | +# VERSION=${{ github.sha }} +# file: ./Dockerfile.agent +# cache-from: type=gha +# cache-to: type=gha,mode=max