diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 00000000000..444a52a451e --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,37 @@ +name: build +on: + push: + {} + # branches: + # - release-1.24 + +concurrency: ${{ github.ref }} +permissions: + contents: read + id-token: write + +jobs: + build: + runs-on: [gyg-gha-runner-32x128] + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + + - name: Build and push Docker image + uses: docker/build-push-action@v6 + with: + pull: true + file: Dockerfile + context: . + platforms: linux/amd64 + push: true + tags: getyourguide/proxy:1.24.2-patch diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000000..71de319b3ef --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +FROM gcr.io/istio-testing/build-tools-proxy:release-1.24-latest AS builder + +WORKDIR /work/ + +COPY . /work/ + +RUN make build_envoy + +FROM istio/proxyv2:1.24.2 + +COPY --from=builder /work/bazel-bin/envoy /usr/local/bin/