-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Chris Dostert
committed
May 30, 2024
1 parent
505dd01
commit 2e34f15
Showing
6 changed files
with
53 additions
and
67 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,15 @@ | ||
name: build | ||
|
||
on: push | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
|
||
- name: Install Opctl | ||
run: curl -L https://github.com/opctl/opctl/releases/download/0.1.45/opctl0.1.45.linux.tgz | sudo tar -xzv -C /usr/local/bin | ||
|
||
- name: Build | ||
run: opctl run build |
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 |
---|---|---|
@@ -1,21 +1,10 @@ | ||
name: build | ||
description: builds the op | ||
inputs: | ||
srcDir: | ||
dir: | ||
default: . | ||
outputs: | ||
srcDir: | ||
dir: {} | ||
opspec: 0.1.6 | ||
run: | ||
serial: | ||
- op: | ||
ref: test | ||
inputs: { srcDir } | ||
- op: | ||
ref: github.com/opspec-pkgs/_.op.bootstrap#2.2.2 | ||
ref: github.com/opspec-pkgs/_.op.bootstrap#4.0.1 | ||
inputs: | ||
srcDir: | ||
outputs: | ||
srcDir: | ||
srcDir: $(../..) |
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 |
---|---|---|
@@ -1,45 +1,44 @@ | ||
name: provision-image | ||
description: | | ||
Provisions image for the op to [opspecpkgs docker hub org](https://hub.docker.com/u/opspecpkgs) w/ name `opspecpkgs/$(opDotYml.name):${opDotYml.version}`. | ||
Provisions image for the op to [opspec-pkgs image registry](https://github.com/orgs/opspec-pkgs/packages) w/ name `$(opDotYml.name):${opDotYml.version}`. | ||
> Before first use, a Dockerfile MUST be added to `.opspec/provision-image` | ||
inputs: | ||
dockerUsername: | ||
githubUsername: | ||
string: | ||
constraints: { minLength: 1 } | ||
description: user for logging in to docker hub | ||
dockerPassword: | ||
description: user for logging in to github | ||
githubAccessToken: | ||
string: | ||
constraints: { minLength: 1 } | ||
description: password for logging in to docker hub | ||
description: accessToken for logging in to github | ||
isSecret: true | ||
srcDir: | ||
dir: | ||
default: . | ||
opspec: 0.1.6 | ||
run: | ||
serial: | ||
- op: | ||
ref: github.com/opspec-pkgs/yaml.parse#1.0.0 | ||
inputs: { yaml: $(srcDir/op.yml) } | ||
outputs: { opDotYml: result } | ||
inputs: | ||
yaml: $(../../op.yml) | ||
outputs: | ||
result: $(opDotYml) | ||
- container: | ||
image: { ref: 'alpine:3.6' } | ||
cmd: [sh, -ce, 'echo -n opspecpkgs/${opName#*/*/}:$(opDotYml.version) > /imageName'] | ||
cmd: [sh, -ce, 'echo -n ghcr.io/opspec-pkgs/${opName#*/*/}:$(opDotYml.version) > /imageName'] | ||
envVars: | ||
opName: $(opDotYml.name) | ||
files: | ||
/imageName: $(imageName) | ||
- op: | ||
ref: github.com/opspec-pkgs/docker.image.build#2.1.0 | ||
inputs: | ||
dockerfile: $(/Dockerfile) | ||
dockerfile: $(./Dockerfile) | ||
imageName: | ||
outputs: { imageTar } | ||
- op: | ||
ref: github.com/opspec-pkgs/docker.image.push#2.1.0 | ||
inputs: | ||
imageTar: | ||
imageName: | ||
username: $(dockerUsername) | ||
password: $(dockerPassword) | ||
registry: ghcr.io | ||
username: $(githubUsername) | ||
password: $(githubAccessToken) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,7 @@ | ||
name: test | ||
description: tests the op | ||
inputs: | ||
srcDir: | ||
dir: | ||
default: . | ||
opspec: 0.1.6 | ||
run: | ||
op: | ||
ref: github.com/opspec-pkgs/opspec.v0.1.6.op.validate#1.0.0 | ||
inputs: { op: $(srcDir) } | ||
inputs: | ||
op: $(../..) |
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