-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from microsoft/dws/initial_open_sourcing
Open sourcing of helm2oci
- Loading branch information
Showing
11 changed files
with
2,689 additions
and
39 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,6 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "cargo" # See documentation for possible values | ||
directory: "." # Location of package manifests | ||
schedule: | ||
interval: "weekly" |
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,81 @@ | ||
name: CI | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
check: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: mcr.microsoft.com/cbl-mariner/base/core:2.0 | ||
steps: | ||
- name: Install dependencies | ||
run: unset HOME; tdnf install -y build-essential git openssl-devel ca-certificates | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
override: true | ||
- name: Check format | ||
run: cargo fmt -- --check | ||
- name: Run cargo check | ||
run: cargo check --locked | ||
- name: Run cargo clippy | ||
run: cargo clippy -- -D warnings | ||
|
||
test: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: mcr.microsoft.com/cbl-mariner/base/core:2.0 | ||
options: --privileged | ||
steps: | ||
- name: Install dependencies | ||
run: unset HOME; tdnf install -y build-essential git openssl-devel ca-certificates tar helm | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
override: true | ||
- uses: oras-project/setup-oras@v1 | ||
with: | ||
version: 1.2.0 | ||
- name: Run cargo test | ||
run: cargo test | ||
|
||
build: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: mcr.microsoft.com/cbl-mariner/base/core:2.0 | ||
steps: | ||
- name: Install dependencies | ||
run: unset HOME; tdnf install -y build-essential git openssl-devel ca-certificates | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
override: true | ||
- name: Install cargo-generate-rpm | ||
run: cargo install cargo-generate-rpm | ||
- name: Build | ||
run: cargo build --release | ||
- name: Generate RPM package | ||
run: cargo generate-rpm | ||
|
||
release-dry-run: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: mcr.microsoft.com/cbl-mariner/base/core:2.0 | ||
steps: | ||
- name: Install dependencies | ||
run: unset HOME; tdnf install -y build-essential git openssl-devel ca-certificates | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
override: true | ||
- uses: katyo/publish-crates@v2 | ||
with: | ||
dry-run: true | ||
ignore-unpublished-changes: true |
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,20 @@ | ||
# Generates a source tarball, including depedencies, and uploads it to GitHub releases | ||
name: release | ||
|
||
on: push | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
if: startsWith(github.ref, 'refs/tags/') | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
override: true | ||
- uses: katyo/publish-crates@v2 | ||
with: | ||
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }} | ||
ignore-unpublished-changes: true |
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 |
---|---|---|
|
@@ -396,3 +396,4 @@ FodyWeavers.xsd | |
|
||
# JetBrains Rider | ||
*.sln.iml | ||
target |
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,7 @@ | ||
### Breaking Changes | ||
### Added | ||
### Fixed | ||
|
||
## 0.1.0 - 2024-08-30 | ||
|
||
Initial release |
Oops, something went wrong.