Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions scalr-cli.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
package:
name: scalr-cli
version: "0.17.4"
epoch: 0
description: Scalr CLI for infrastructure management
copyright:
- license: Apache-2.0

environment:
contents:
packages:
- busybox
- ca-certificates-bundle
- go

pipeline:
- uses: git-checkout
with:
repository: https://github.com/Scalr/scalr-cli
tag: v${{package.version}}
expected-commit: db636c2cdd6f3394efa1205741a774796a3f4bc8

- uses: go/build
with:
packages: .
output: scalr
ldflags: -w -s -X main.versionCLI=v${{package.version}} -X main.buildDate=$(date -u +%Y-%m-%dT%H:%M:%SZ)

- uses: strip

update:
enabled: true
github:
identifier: Scalr/scalr-cli
strip-prefix: v

test:
pipeline:
- name: Test scalr version command
runs: |
scalr version

- name: Test scalr help command
runs: |
scalr --help
scalr -help

- name: Test scalr configuration check
runs: |
# Test that it shows not configured message
scalr || echo "Expected: Not configured message"

- uses: test/tw/ldd-check