-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This reverts commit 542fd34
- Loading branch information
Showing
6 changed files
with
266 additions
and
879 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 |
---|---|---|
|
@@ -10,10 +10,6 @@ on: | |
env: | ||
REGISTRY: ghcr.io | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
@@ -26,35 +22,25 @@ jobs: | |
- uses: actions/checkout@v4 | ||
- uses: bazel-contrib/[email protected] | ||
with: | ||
# Avoid downloading Bazel every time. | ||
bazelisk-cache: true | ||
# Store build cache per workflow. | ||
disk-cache: ${{ github.workflow }} | ||
# Share repository cache between workflows. | ||
repository-cache: true | ||
|
||
- name: Build | ||
run: | | ||
bazel build //... | ||
- name: Test | ||
run: | | ||
bazel test //... | ||
- name: Build with Bazel | ||
run: bazel build //... | ||
|
||
#### | ||
## only on push to main | ||
#### | ||
- name: Test with Bazel | ||
run: bazel test //... | ||
|
||
- name: Log in to the Container registry | ||
if: github.event_name == 'push' | ||
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1 | ||
with: | ||
registry: ${{ env.REGISTRY }} | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Push the core image to the OCI registry | ||
if: github.event_name == 'push' | ||
#run: bazel run --embed_label="${GITHUB_SHA::6}" --stamp //core-image:push-image | ||
run: bazel run //core-image:push-image | ||
|
||
- name: Push the chart to the OCI registry | ||
if: github.event_name == 'push' | ||
run: bazel run //chart:yaku_helm.push_registry |
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
Oops, something went wrong.