This repository has been archived by the owner on Jul 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 276
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(pipeline): Push latest-main images nightly
Signed-off-by: nshankar13 <[email protected]>
- Loading branch information
1 parent
0dc9e1f
commit 0d6a191
Showing
3 changed files
with
50 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters