Skip to content

Commit

Permalink
Merge pull request #22 from eunomie/standalone
Browse files Browse the repository at this point in the history
Allow to run standalone without to repeat dague
  • Loading branch information
eunomie committed Jan 5, 2023
2 parents 0a00557 + cf93b11 commit bd8a7ab
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
with:
name: dague-bin
- name: Check docs
run: chmod +x ./docker-dague; ./docker-dague dague go:doc --check
run: chmod +x ./docker-dague; ./docker-dague go:doc --check

lint:
needs: [build]
Expand All @@ -48,7 +48,7 @@ jobs:
with:
name: dague-bin
- name: Lint
run: chmod +x ./docker-dague; ./docker-dague dague go:lint
run: chmod +x ./docker-dague; ./docker-dague go:lint

format:
needs: [build]
Expand All @@ -60,7 +60,7 @@ jobs:
with:
name: dague-bin
- name: gofumpt
run: chmod +x ./docker-dague; ./docker-dague dague go:fmt:print
run: chmod +x ./docker-dague; ./docker-dague go:fmt:print

build-cross:
needs: [build]
Expand All @@ -84,7 +84,7 @@ jobs:
- name: Tag
run: git tag v${{ steps.new_version.outputs.new_version }}
- name: Cross build binaries
run: chmod +x ./docker-dague; ./docker-dague dague go:build cross
run: chmod +x ./docker-dague; ./docker-dague go:build cross
- name: Upload artifacts
if: github.event_name == 'push'
uses: actions/upload-artifact@v3
Expand Down
2 changes: 1 addition & 1 deletion cmd/docker-dague/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ func pluginMain() {

func main() {
if plugin.RunningStandalone() {
os.Args = append([]string{"docker"}, os.Args[1:]...)
os.Args = append([]string{"docker", "dague"}, os.Args[1:]...)
}
pluginMain()
}

0 comments on commit bd8a7ab

Please sign in to comment.