-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor updatecli javascript to install updatecli only (#85)
* Remove deprecated Dockerfile Signed-off-by: Olivier Vernin <[email protected]> * Update updatecli config according latest refactoring Signed-off-by: Olivier Vernin <[email protected]> * Refactoring the GH action to only install updatecli Signed-off-by: Olivier Vernin <[email protected]> * Remove docker workflow Signed-off-by: Olivier Vernin <[email protected]> * Update dist Signed-off-by: Olivier Vernin <[email protected]>
- Loading branch information
Showing
10 changed files
with
59 additions
and
195 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
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
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,26 +1,19 @@ | ||
--- | ||
# https://help.github.com/en/articles/metadata-syntax-for-github-actions | ||
name: 'Updatecli Action' | ||
description: 'GitHub Action for Updatecli, a GitDevOps Automation engine.' | ||
name: 'Updatecli Installer' | ||
description: 'Install a specific Updatecli version' | ||
author: 'Updatecli' | ||
branding: | ||
icon: 'fast-forward' | ||
color: 'purple' | ||
|
||
inputs: | ||
arg: | ||
description: 'Arguments to pass to Updatecli' | ||
required: false | ||
default: diff | ||
version: | ||
description: 'Specify updatecli version to use' | ||
description: 'Specify Updatecli version to use. Accepted values are any Updatecli version' | ||
required: false | ||
default: "v0.25.0" | ||
install-only: | ||
description: 'Install Updatecli' | ||
default: false | ||
required: false | ||
|
||
runs: | ||
using: 'node16' | ||
main: 'dist/index.js' | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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
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,60 +1,43 @@ | ||
title: Bump updatecli version | ||
title: "Bump updatecli version" | ||
|
||
scms: | ||
default: | ||
kind: github | ||
kind: "github" | ||
spec: | ||
user: updatecli | ||
email: [email protected] | ||
owner: updatecli | ||
repository: updatecli-action | ||
username: github-actions | ||
token: {{requiredEnv "UPDATECLI_GITHUB_TOKEN"}} | ||
branch: main | ||
user: "updatecli" | ||
email: "[email protected]" | ||
owner: "updatecli" | ||
repository: "updatecli-action" | ||
username: "github-actions" | ||
token: '{{requiredEnv "UPDATECLI_GITHUB_TOKEN"}}' | ||
branch: "v2" | ||
|
||
sources: | ||
lastVersion: | ||
name: Get latest updatecli version | ||
kind: githubRelease | ||
spec: | ||
owner: updatecli | ||
repository: updatecli | ||
token: {{requiredEnv "UPDATECLI_GITHUB_TOKEN"}} | ||
|
||
conditions: | ||
dockerImage: | ||
name: Ensure that the image docker image tag is published | ||
kind: dockerImage | ||
spec: | ||
image: "ghcr.io/updatecli/updatecli" | ||
architecture: amd64 | ||
dockerfile: | ||
name: "Test if ARG UPDATECLI_VERSION is set" | ||
kind: dockerfile | ||
updatecli: | ||
name: "Get latest updatecli version" | ||
kind: "githubrelease" | ||
spec: | ||
file: Dockerfile | ||
instruction: | ||
keyword: "ARG" | ||
matcher: "UPDATECLI_VERSION" | ||
owner: "updatecli" | ||
repository: "updatecli" | ||
token: '{{requiredEnv "UPDATECLI_GITHUB_TOKEN"}}' | ||
|
||
targets: | ||
dockerfile: | ||
name: "Update the value of ARG UPDATECLI_VERSION in the Dockerfile" | ||
kind: dockerfile | ||
action: | ||
name: "Bump updatecli version in action.yaml" | ||
kind: yaml | ||
scmid: default | ||
sourceid: updatecli | ||
spec: | ||
file: Dockerfile | ||
instruction: | ||
keyword: "ARG" | ||
matcher: "UPDATECLI_VERSION" | ||
scmID: default | ||
file: "action.yaml" | ||
key: "inputs.version.default" | ||
|
||
pullrequests: | ||
default: | ||
kind: github | ||
title: 'Bump updatecli version to {{ source "lastVersion" }}' | ||
scmID: default | ||
title: 'Bump updatecli version to {{ source "updatecli" }}' | ||
scmid: default | ||
targets: | ||
- dockerfile | ||
- action | ||
spec: | ||
labels: | ||
- dependencies | ||
|