Skip to content

Commit f663c17

Browse files
committed
Merge branch 'docker-compose-cmd' into action-support
2 parents 8662467 + d79964a commit f663c17

File tree

3 files changed

+19
-10
lines changed

3 files changed

+19
-10
lines changed

.github/workflows/tests.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,12 @@ jobs:
1111
- name: Checkout code
1212
uses: actions/checkout@v4
1313

14+
- name: Login to Registry
15+
uses: docker/login-action@v3
16+
with:
17+
registry: ghcr.io
18+
username: ${{ github.repository_owner }}
19+
password: ${{ github.token }}
20+
1421
- name: Workbench up
15-
uses: ./
22+
uses: ./

action.yaml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ name: Workbench Up
33
description: "Run workbench up with default configuration to start S3C workbench environment"
44

55
inputs:
6-
environment:
6+
name:
77
description: "Name of the environment to start (defaults to 'default')"
88
required: false
99
default: "default"
10-
environment-dir:
11-
description: "Directory to store the environment"
10+
env-dir:
11+
description: "Directory where the environment is stored"
1212
required: false
1313
default: "env"
1414
build:
@@ -38,9 +38,10 @@ runs:
3838

3939
- name: Start workbench environment
4040
shell: bash
41-
run: >
42-
workbench up
43-
--name ${{ inputs.environment }}
44-
--env-dir ${{ inputs.environment-dir }}
45-
${{ inputs.build == 'true' && '--build' || '' }}
41+
run: |
42+
workbench up \
43+
--detach \
44+
--name ${{ inputs.name }} \
45+
--env-dir ${{ inputs.env-dir }} \
46+
${{ inputs.build == 'true' && '--build' || '' }} \
4647
${{ inputs.no-cache == 'true' && '--no-cache' || '' }}

cmd/util.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ func buildDockerComposeCommand(cfg Config, args ...string) []string {
6666
profiles := getComposeProfiles(cfg)
6767

6868
dockerComposeCmd := []string{
69-
"docker-compose",
69+
"docker",
70+
"compose",
7071
"--env-file",
7172
"defaults.env",
7273
}

0 commit comments

Comments
 (0)