Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

Commit

Permalink
test(pipeline): Push latest-main images nightly
Browse files Browse the repository at this point in the history
Signed-off-by: nshankar13 <[email protected]>
  • Loading branch information
nshankar13 committed Aug 13, 2021
1 parent 0dc9e1f commit 0d6a191
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 11 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/nightly-images.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Nightly Images
on:
schedule:
- cron: "0 0 * * *"

jobs:
images:
name: Docker Images
runs-on: ubuntu-latest
env:
DOCKER_USER: ${{ secrets.RELEASE_DOCKER_USER }}
DOCKER_PASS: ${{ secrets.RELEASE_DOCKER_PASS }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Restore Module Cache
uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-gomod2-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-gomod2-
- name: Restore Build Cache
uses: actions/cache@v2
with:
path: ~/.cache/go-build
key: ${{ runner.os }}-gobuild-${{ hashFiles('**/*.go') }}
- name: Setup Go 1.16
uses: actions/setup-go@v1
with:
go-version: 1.16
- name: Docker Login
run: docker login --username "$DOCKER_USER" --password-stdin <<< "$DOCKER_PASS"
- name: Push images with git sha tag
env:
CTR_TAG: latest-main
run: make docker-push
16 changes: 8 additions & 8 deletions .github/workflows/nightly-noinstall.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
name: OSM NoInstall Nightly Job
on:
schedule:
- cron: "0 0 * * *"
workflow_run:
workflows: ["Nightly Images"]
types: [completed]

env:
CTR_REGISTRY: openservicemesh
CTR_TAG: latest-main

jobs:
test:
name: NoInstall Nightly Job
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
env:
KUBECONFIG: ${{ github.workspace }}/kind-kubeconfig
steps:
Expand Down Expand Up @@ -54,13 +60,7 @@ jobs:
./bin/osm install \
--set=OpenServiceMesh.image.registry="$CTR_REGISTRY" \
--set=OpenServiceMesh.image.tag="$CTR_TAG"
env:
CTR_REGISTRY: openservicemesh
CTR_TAG: ${{ github.sha }}
- name: Run e2es
run: go test ./tests/e2e -test.v -ginkgo.v -ginkgo.progress -test.timeout 60m -installType=NoInstall
env:
CTR_REGISTRY: openservicemesh
CTR_TAG: ${{ github.sha }}
- name: Kind cleanup
run: kind delete cluster --name $KIND_CLUSTER_NAME
8 changes: 5 additions & 3 deletions .github/workflows/openshift-nightly.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
name: OpenShift Nightly Job
on:
schedule:
- cron: "0 0 * * *"
workflow_run:
workflows: ["Nightly Images"]
types: [completed]

env:
CTR_REGISTRY: openservicemesh
CTR_TAG: ${{ github.sha }}
CTR_TAG: latest-main

jobs:
test:
name: OpenShift Nightly Job
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Checkout v2
uses: actions/checkout@v2
Expand Down

0 comments on commit 0d6a191

Please sign in to comment.