-
Notifications
You must be signed in to change notification settings - Fork 11
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 #79 from balena-io/ab77/operational
build with Flowzone
- Loading branch information
Showing
9 changed files
with
93 additions
and
59 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,39 @@ | ||
--- | ||
name: build and draft GitHub release | ||
# https://github.com/product-os/flowzone/tree/master/.github/actions | ||
inputs: | ||
json: | ||
description: "JSON stringified object containing all the inputs from the calling workflow" | ||
required: true | ||
secrets: | ||
description: "JSON stringified object containing all the secrets from the calling workflow" | ||
required: true | ||
variables: | ||
description: "JSON stringified object containing all the variables from the calling workflow" | ||
required: true | ||
|
||
runs: | ||
# https://docs.github.com/en/actions/creating-actions/creating-a-composite-action | ||
using: "composite" | ||
steps: | ||
- shell: bash | ||
run: | | ||
docker compose -f docker-compose.test.yml run sut 'make -j $(nproc) dep release' | ||
# expecting five (5) of each | ||
binaries="$(find build -type f -name '*.tar.gz' | wc -l)" | ||
checksums="$(find build -type f -name '*.sha256' | wc -l)" | ||
if [[ $binaries -lt $checksums ]] || [[ $binaries -lt 5 ]]; then | ||
find build -type f | ||
false | ||
fi | ||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: gh-release-${{ github.event.pull_request.head.sha || github.event.head_commit.id }} | ||
path: | | ||
build/*.sha256 | ||
build/*.tar.gz | ||
retention-days: 1 |
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,28 @@ | ||
name: Flowzone | ||
|
||
on: | ||
pull_request: | ||
types: [opened, synchronize, closed] | ||
branches: [main, master] | ||
pull_request_target: | ||
types: [opened, synchronize, closed] | ||
branches: [main, master] | ||
|
||
jobs: | ||
flowzone: | ||
name: Flowzone | ||
uses: product-os/flowzone/.github/workflows/flowzone.yml@master | ||
# prevent duplicate workflow executions for pull_request and pull_request_target | ||
if: | | ||
( | ||
github.event.pull_request.head.repo.full_name == github.repository && | ||
github.event_name == 'pull_request' | ||
) || ( | ||
github.event.pull_request.head.repo.full_name != github.repository && | ||
github.event_name == 'pull_request_target' | ||
) | ||
secrets: inherit | ||
with: | ||
repo_config: true | ||
repo_description: "sshproxy is a simple ssh server library exposing an even simpler API" | ||
docker_images: "" |
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 |
---|---|---|
|
@@ -27,3 +27,6 @@ vendor/ | |
bin/* | ||
build/* | ||
release/* | ||
|
||
## Other | ||
.DS_Store |
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 @@ | ||
FROM golang:1.18.0 |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
version: "2.4" | ||
|
||
services: | ||
sut: | ||
image: golang:1.18.0 | ||
volumes: | ||
- .:/go/src/github.com/balena-io/sshproxy | ||
working_dir: /go/src/github.com/balena-io/sshproxy | ||
entrypoint: | ||
- /bin/bash | ||
- "-c" | ||
command: | ||
- | | ||
set -axe | ||
make -j $$(nproc) clean dep lint test |
This file was deleted.
Oops, something went wrong.
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,2 @@ | ||
--- | ||
type: docker |