Skip to content

Commit 13062b3

Browse files
authored
Merge pull request #1 from microsoft/dws/initial_open_sourcing
Open sourcing of helm2oci
2 parents fe9a84e + ba37ff9 commit 13062b3

11 files changed

Lines changed: 2689 additions & 39 deletions

File tree

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "cargo" # See documentation for possible values
4+
directory: "." # Location of package manifests
5+
schedule:
6+
interval: "weekly"

.github/workflows/ci.yml

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
name: CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
check:
7+
runs-on: ubuntu-latest
8+
container:
9+
image: mcr.microsoft.com/cbl-mariner/base/core:2.0
10+
steps:
11+
- name: Install dependencies
12+
run: unset HOME; tdnf install -y build-essential git openssl-devel ca-certificates
13+
- uses: actions/checkout@v2
14+
- uses: actions-rs/toolchain@v1
15+
with:
16+
toolchain: stable
17+
override: true
18+
- name: Check format
19+
run: cargo fmt -- --check
20+
- name: Run cargo check
21+
run: cargo check --locked
22+
- name: Run cargo clippy
23+
run: cargo clippy -- -D warnings
24+
25+
test:
26+
runs-on: ubuntu-latest
27+
container:
28+
image: mcr.microsoft.com/cbl-mariner/base/core:2.0
29+
options: --privileged
30+
steps:
31+
- name: Install dependencies
32+
run: unset HOME; tdnf install -y build-essential git openssl-devel ca-certificates tar helm
33+
- uses: actions/checkout@v2
34+
- uses: actions-rs/toolchain@v1
35+
with:
36+
profile: minimal
37+
toolchain: stable
38+
override: true
39+
- uses: oras-project/setup-oras@v1
40+
with:
41+
version: 1.2.0
42+
- name: Run cargo test
43+
run: cargo test
44+
45+
build:
46+
runs-on: ubuntu-latest
47+
container:
48+
image: mcr.microsoft.com/cbl-mariner/base/core:2.0
49+
steps:
50+
- name: Install dependencies
51+
run: unset HOME; tdnf install -y build-essential git openssl-devel ca-certificates
52+
- uses: actions/checkout@v2
53+
- uses: actions-rs/toolchain@v1
54+
with:
55+
profile: minimal
56+
toolchain: stable
57+
override: true
58+
- name: Install cargo-generate-rpm
59+
run: cargo install cargo-generate-rpm
60+
- name: Build
61+
run: cargo build --release
62+
- name: Generate RPM package
63+
run: cargo generate-rpm
64+
65+
release-dry-run:
66+
runs-on: ubuntu-latest
67+
container:
68+
image: mcr.microsoft.com/cbl-mariner/base/core:2.0
69+
steps:
70+
- name: Install dependencies
71+
run: unset HOME; tdnf install -y build-essential git openssl-devel ca-certificates
72+
- uses: actions/checkout@v2
73+
- uses: actions-rs/toolchain@v1
74+
with:
75+
profile: minimal
76+
toolchain: stable
77+
override: true
78+
- uses: katyo/publish-crates@v2
79+
with:
80+
dry-run: true
81+
ignore-unpublished-changes: true

.github/workflows/release.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Generates a source tarball, including depedencies, and uploads it to GitHub releases
2+
name: release
3+
4+
on: push
5+
6+
jobs:
7+
release:
8+
runs-on: ubuntu-latest
9+
if: startsWith(github.ref, 'refs/tags/')
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v3
13+
- uses: actions-rs/toolchain@v1
14+
with:
15+
toolchain: stable
16+
override: true
17+
- uses: katyo/publish-crates@v2
18+
with:
19+
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
20+
ignore-unpublished-changes: true

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,3 +396,4 @@ FodyWeavers.xsd
396396

397397
# JetBrains Rider
398398
*.sln.iml
399+
target

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
### Breaking Changes
2+
### Added
3+
### Fixed
4+
5+
## 0.1.0 - 2024-08-30
6+
7+
Initial release

0 commit comments

Comments
 (0)