-
Notifications
You must be signed in to change notification settings - Fork 45
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
Showing
11 changed files
with
153 additions
and
14 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,16 @@ | ||
name: Create Linux release | ||
on: | ||
push: | ||
tags: | ||
- 'test*.*.*' | ||
concurrency: | ||
group: ${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build-binary: | ||
uses: ./.github/workflows/make-binary.yml | ||
with: | ||
linux-bin-path: uffizzi-linux | ||
darwin-bin-path: uffizzi-darwin | ||
|
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,61 @@ | ||
on: | ||
workflow_call: | ||
inputs: | ||
linux-bin-path: | ||
required: true | ||
type: string | ||
darwin-bin-path: | ||
required: true | ||
type: string | ||
jobs: | ||
make-binary: | ||
strategy: | ||
matrix: | ||
os: [ubuntu-20.04, macos-12] | ||
fail-fast: false | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: 'Install Linux dependencies' | ||
if: matrix.os == 'ubuntu-20.04' | ||
run: | | ||
sudo apt update | ||
sudo apt install -y build-essential squashfs-tools curl gcc make bison | ||
- name: 'Install MacOs dependencies' | ||
if: matrix.os == 'macos-12' | ||
run: | | ||
brew install squashfs | ||
- uses: actions/checkout@v2 | ||
- name: 'Set up Ruby' | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: '3.0.3' | ||
- name: 'Create Linux Bin' | ||
if: matrix.os == 'ubuntu-20.04' | ||
run: | | ||
wget https://github.com/pmq20/ruby-packer/releases/download/linux-x64/rubyc | ||
chmod +x ./rubyc | ||
./rubyc --openssl-dir=/etc/ssl ./uffizzi --output=${{ env.LINUX_BIN_PATH }} | ||
- name: 'Create Darwin Bin' | ||
if: matrix.os == 'macos-12' | ||
run: | | ||
export PATH="$(brew --prefix)/opt/[email protected]/bin:$PATH" | ||
export LDFLAGS="-L$(brew --prefix)/opt/[email protected]/lib" | ||
export CPPFLAGS="-I$(brew --prefix)/opt/[email protected]/include" | ||
export PKG_CONFIG_PATH="$(brew --prefix)/opt/[email protected]/lib/pkgconfig" | ||
export SSL_CERT_FILE=$(ruby -e "require 'openssl'; puts OpenSSL::X509::DEFAULT_CERT_FILE") | ||
wget https://github.com/pmq20/ruby-packer/releases/download/darwin-x64/rubyc | ||
chmod +x ./rubyc | ||
./rubyc --openssl-dir=/etc/ssl ./uffizzi --output=${{ inputs.darwin-bin-path }} | ||
- name: Upload Artifacts | ||
uses: actions/upload-artifact@v2 | ||
if: matrix.os == 'ubuntu-20.04' | ||
with: | ||
name: ${{ inputs.linux-bin-path }} | ||
path: ${{ inputs.linux-bin-path }} | ||
- name: Upload Artifacts | ||
uses: actions/upload-artifact@v2 | ||
if: matrix.os == 'macos-12' | ||
with: | ||
name: ${{ inputs.darwin-bin-path }} | ||
path: ${{ inputs.darwin-bin-path }} |
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,7 +1,7 @@ | ||
PATH | ||
remote: . | ||
specs: | ||
uffizzi-cli (2.0.24) | ||
uffizzi-cli (2.0.25) | ||
activesupport | ||
awesome_print | ||
faker | ||
|
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
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
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,5 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
module Uffizzi | ||
VERSION = '2.0.24' | ||
VERSION = '2.0.25' | ||
end |
21 changes: 21 additions & 0 deletions
21
test/fixtures/files/uffizzi/uffizzi_clusters_list_with_project_name.json
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,21 @@ | ||
{ | ||
"clusters":[ | ||
{ | ||
"name":"uffizzi-test-cluster-1", | ||
"project": { | ||
"name": "Project 1" | ||
} | ||
}, | ||
{ | ||
"name":"uffizzi-test-cluster-2", | ||
"project": { | ||
"name": "Project 1" | ||
} | ||
}, | ||
{ | ||
"name":"uffizzi-test-cluster-3", | ||
"project": { | ||
"name": "Project Second" | ||
} | ||
}] | ||
} |
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