Skip to content

Commit

Permalink
ci: Run publish job
Browse files Browse the repository at this point in the history
  • Loading branch information
tommy351 committed Apr 2, 2024
1 parent 4543f9a commit 791b691
Showing 1 changed file with 39 additions and 39 deletions.
78 changes: 39 additions & 39 deletions .github/workflows/build_and_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -131,45 +131,45 @@ 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
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_TOKEN }}

- 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=dcard/envoy-gateway

- 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=dcard/envoy-gateway
#
# - name: Build and Push EG Latest Helm Chart
# if: github.event_name == 'push' && github.ref == 'refs/heads/main'
Expand Down

0 comments on commit 791b691

Please sign in to comment.