GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(action): add deploy action · getstackhead/stackhead@6696b51

This repository was archived by the owner on Feb 26, 2024. It is now read-only.

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .github/workflows
    • release.yml
  • actions/deploy
    • action.yml
    • stackhead-cli
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.github/workflows/release.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/release.yml
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ jobs:
3131
- run: pnpm install
3232
# todo: adjust Version numbers (VERSION, ansible/VERSION)
3333
# todo: copy schema directory from schemas/ to ansible/)
34+
# todo: copy cli binary to actions/deploy folder
3435
- name: Semantic Release Action
3536
uses: saitho/semantic-release-action-pnpm@master
3637
env:
Collapse file

‎actions/deploy/action.yml‎

Copy file name to clipboard
+26Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: 'StackHead CLI'
2+
description: 'Deploy a project definition file to your server that was prepared for StackHead.'
3+
author: 'Mario Lubenka'
4+
inputs:
5+
ipaddress:
6+
description: 'IP address of the server'
7+
required: true
8+
file:
9+
description: 'Project definition file'
10+
required: true
11+
version:
12+
description: 'Version of StackHead to use (default: master)'
13+
required: false
14+
default: master
15+
runs:
16+
using: "composite"
17+
steps:
18+
- name: Add IP to known_hosts
19+
shell: bash
20+
run: "ssh-keyscan -v -T 30 ${{ inputs.ipaddress }} >> ~/.ssh/known_hosts"
21+
- name: "Install dependencies"
22+
shell: bash
23+
run: ${{ github.action_path }}/stackhead-cli init --version="${{ inputs.version }}" -v
24+
- name: "Deploy application"
25+
shell: bash
26+
run: ${{ github.action_path }}/stackhead-cli project deploy "${{ github.workspace }}/${{ inputs.file }}" "${{ inputs.ipaddress }}" -v
Collapse file

‎actions/deploy/stackhead-cli‎

Copy file name to clipboard
12.1 MB
Binary file not shown.

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.