Skip to content

Commit

Permalink
update-pipeline for actions now runs a script in the ARC image instea…
Browse files Browse the repository at this point in the history
…d of using docker - much faster
  • Loading branch information
robwhitby committed Sep 6, 2023
1 parent 35f2541 commit 33621f5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,7 @@ jobs:
submodules: recursive
- name: Sync workflow with halfpipe manifest
id: sync
uses: docker://eu.gcr.io/halfpipe-io/halfpipe-auto-update
with:
args: -c "cd e2e/actions/feature-update-pipeline-and-tag; update-actions-workflow"
entrypoint: /bin/bash
run: halfpipe-update-workflow
env:
HALFPIPE_FILE_PATH: .halfpipe.io.yml
- name: Commit and push changes to workflow
Expand Down
5 changes: 1 addition & 4 deletions e2e/actions/feature-update-pipeline/workflowExpected.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,7 @@ jobs:
submodules: recursive
- name: Sync workflow with halfpipe manifest
id: sync
uses: docker://eu.gcr.io/halfpipe-io/halfpipe-auto-update
with:
args: -c "cd e2e/actions/feature-update-pipeline; update-actions-workflow"
entrypoint: /bin/bash
run: halfpipe-update-workflow
env:
HALFPIPE_FILE_PATH: .halfpipe.io
- name: Commit and push changes to workflow
Expand Down
11 changes: 1 addition & 10 deletions renderers/actions/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,10 @@ import (
)

func (a *Actions) updateSteps(task manifest.Update, man manifest.Manifest) Steps {
cdPrefix := ""
if a.workingDir != "" {
cdPrefix = fmt.Sprintf("cd %s; ", a.workingDir)
}

update := Step{
Name: "Sync workflow with halfpipe manifest",
ID: "sync",
Uses: "docker://eu.gcr.io/halfpipe-io/halfpipe-auto-update",
With: With{
"args": fmt.Sprintf(`-c "%supdate-actions-workflow"`, cdPrefix),
"entrypoint": "/bin/bash",
},
Run: "halfpipe-update-workflow",
Env: Env{
"HALFPIPE_FILE_PATH": a.halfpipeFilePath,
},
Expand Down

0 comments on commit 33621f5

Please sign in to comment.