Skip to content

Commit

Permalink
Revert "initial oci test (#8)"
Browse files Browse the repository at this point in the history
This reverts commit 542fd34
  • Loading branch information
frank-bee committed Oct 29, 2024
1 parent 271c2ee commit 8070ac6
Show file tree
Hide file tree
Showing 6 changed files with 266 additions and 879 deletions.
28 changes: 7 additions & 21 deletions .github/workflows/build-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
21 changes: 0 additions & 21 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -19,24 +19,3 @@ go_sdk.download(version = "1.22.2")
go_deps = use_extension("@gazelle//:extensions.bzl", "go_deps")
go_deps.from_file(go_mod = "//onyx:go.mod")
use_repo(go_deps, "com_github_azure_azure_sdk_for_go_sdk_azcore", "com_github_azure_azure_sdk_for_go_sdk_azidentity", "com_github_azure_azure_sdk_for_go_sdk_storage_azblob", "com_github_chigopher_pathlib", "com_github_invopop_jsonschema", "com_github_invopop_yaml", "com_github_netflix_go_iomux", "com_github_pkg_errors", "com_github_spf13_afero", "com_github_spf13_cobra", "com_github_spf13_viper", "com_github_stretchr_testify", "com_github_xeipuuv_gojsonschema", "in_gopkg_natefinch_lumberjack_v2", "in_gopkg_yaml_v3", "org_uber_go_zap")

###
# core image
###

bazel_dep(name = "aspect_bazel_lib", version = "2.8.0")
bazel_dep(name = "rules_oci", version = "2.0.1")
bazel_dep(name = "rules_pkg", version = "0.10.1")
bazel_dep(name = "container_structure_test", version = "1.15.0")

oci = use_extension("@rules_oci//oci:extensions.bzl", "oci")
oci.pull(
name = "distroless_base",
digest = "sha256:ccaef5ee2f1850270d453fdf700a5392534f8d1a8ca2acda391fbb6a06b81c86",
image = "gcr.io/distroless/base",
platforms = [
"linux/amd64",
"linux/arm64",
],
)
use_repo(oci, "distroless_base", "distroless_base_linux_amd64", "distroless_base_linux_arm64")
Loading

0 comments on commit 8070ac6

Please sign in to comment.