Skip to content

Commit

Permalink
ci: release latest image to ghcr.io (#4)
Browse files Browse the repository at this point in the history
**Please provide a description of this PR:**

---------

Signed-off-by: zirain <[email protected]>
  • Loading branch information
zirain authored Jul 30, 2024
1 parent d2453b3 commit 97ab03e
Showing 1 changed file with 60 additions and 0 deletions.
60 changes: 60 additions & 0 deletions .github/workflows/release-latest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Release Latest

on:
push:
branches:
- "main"

permissions:
contents: read
packages: write

jobs:
build-check:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.1
with:
go-version: 1.22.x
cache: true
# enable modules that needed by Istio Dual Stack
- run: make lint
- run: make test
- run: make build

e2e:
name: e2e
runs-on: ubuntu-latest
needs: build-check
env:
HUB: ghcr.io/istio-ecosystem
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.1
with:
go-version: 1.22.x
cache: true
- run: go install github.com/jstemmer/go-junit-report@latest
# run e2e tests
- run: prow/integ-suite-kind.sh test.integration.kube
env:
BUILD_WITH_CONTAINER: 0
TAG: "1.22.3" # keep this with latest istio version

release:
name: Release Latest Image
runs-on: ubuntu-latest
needs: e2e
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.1
with:
go-version: 1.22.x
cache: true
- run: make docker.push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
HUB: ghcr.io/istio-ecosystem
TAG: "latest"

0 comments on commit 97ab03e

Please sign in to comment.