Skip to content

Commit

Permalink
ci: Disable publish job
Browse files Browse the repository at this point in the history
  • Loading branch information
tommy351 committed Mar 29, 2024
1 parent fb6bdb3 commit a437680
Showing 1 changed file with 44 additions and 44 deletions.
88 changes: 44 additions & 44 deletions .github/workflows/build_and_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -131,47 +131,47 @@ jobs:
IMAGE_PULL_POLICY: IfNotPresent
run: make e2e

publish:
runs-on: ubuntu-latest
needs: [conformance-test, e2e-test]
steps:
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
- uses: ./tools/github-actions/setup-deps

- name: Download EG Binaries
uses: actions/download-artifact@c850b930e6ba138125429b7e5c93fc707a7f8427 # v4.1.4
with:
name: envoy-gateway
path: bin/

- name: Give Privileges To EG Binaries
run: |
chmod +x bin/linux/amd64/envoy-gateway
chmod +x bin/linux/arm64/envoy-gateway
# build and push image
- name: Login to DockerHub
if: github.event_name == 'push'
uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20 # v3.1.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}

- name: Setup Multiarch Environment
if: github.event_name == 'push'
run: make image.multiarch.setup

- name: Build and Push EG Commit Image
if: github.event_name == 'push'
# tag is set to the short SHA of the commit
run: make image.push.multiarch PLATFORMS="linux_amd64 linux_arm64" IMAGE=envoyproxy/gateway-dev

- name: Build and Push EG Latest Image
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
# tag is set to `latest` when pushing to main branch
run: make image.push.multiarch TAG=latest PLATFORMS="linux_amd64 linux_arm64" IMAGE=envoyproxy/gateway-dev

- name: Build and Push EG Latest Helm Chart
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
# use `0.0.0` as the default latest version.
run: OCI_REGISTRY=oci://docker.io/envoyproxy CHART_VERSION=v0.0.0-latest TAG=latest make helm-package helm-push
# publish:
# runs-on: ubuntu-latest
# needs: [conformance-test, e2e-test]
# steps:
# - uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
# - uses: ./tools/github-actions/setup-deps
#
# - name: Download EG Binaries
# uses: actions/download-artifact@c850b930e6ba138125429b7e5c93fc707a7f8427 # v4.1.4
# with:
# name: envoy-gateway
# path: bin/
#
# - name: Give Privileges To EG Binaries
# run: |
# chmod +x bin/linux/amd64/envoy-gateway
# chmod +x bin/linux/arm64/envoy-gateway
#
# # build and push image
# - name: Login to DockerHub
# if: github.event_name == 'push'
# uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20 # v3.1.0
# with:
# username: ${{ secrets.DOCKERHUB_USERNAME }}
# password: ${{ secrets.DOCKERHUB_PASSWORD }}
#
# - name: Setup Multiarch Environment
# if: github.event_name == 'push'
# run: make image.multiarch.setup
#
# - name: Build and Push EG Commit Image
# if: github.event_name == 'push'
# # tag is set to the short SHA of the commit
# run: make image.push.multiarch PLATFORMS="linux_amd64 linux_arm64" IMAGE=envoyproxy/gateway-dev
#
# - name: Build and Push EG Latest Image
# if: github.event_name == 'push' && github.ref == 'refs/heads/main'
# # tag is set to `latest` when pushing to main branch
# run: make image.push.multiarch TAG=latest PLATFORMS="linux_amd64 linux_arm64" IMAGE=envoyproxy/gateway-dev
#
# - name: Build and Push EG Latest Helm Chart
# if: github.event_name == 'push' && github.ref == 'refs/heads/main'
# # use `0.0.0` as the default latest version.
# run: OCI_REGISTRY=oci://docker.io/envoyproxy CHART_VERSION=v0.0.0-latest TAG=latest make helm-package helm-push

0 comments on commit a437680

Please sign in to comment.