Commit graph

20 commits

Author SHA1 Message Date
Kyle Penfound
d809c269da
Allow version without v (#194)
* add v to version if it does not have a leading v

Signed-off-by: kpenfound <kyle@dagger.io>

* test version without the v

Signed-off-by: kpenfound <kyle@dagger.io>

---------

Signed-off-by: kpenfound <kyle@dagger.io>
2025-10-01 11:01:20 -04:00
Matias Pan
27bae3a184
Add summary for executable verbs (#192) 2025-09-26 16:29:33 -03:00
Kyle Penfound
d913e70051
avoid downloading dagger if requested version is already installed (#187)
* avoid overwriting existing dagger install unless force-install is true

Signed-off-by: kpenfound <kyle@dagger.io>

* add force-install to version tests

Signed-off-by: kpenfound <kyle@dagger.io>

* only skip install if we requested the same version that we already had

Signed-off-by: kpenfound <kyle@dagger.io>

* fix dagger check logic

Signed-off-by: kpenfound <kyle@dagger.io>

* remove incorrect and unused default for engine-stop

Signed-off-by: kpenfound <kyle@dagger.io>

* add tests for commit and latest

Signed-off-by: kpenfound <kyle@dagger.io>

* wrong commit in commit test

Signed-off-by: kpenfound <kyle@dagger.io>

---------

Signed-off-by: kpenfound <kyle@dagger.io>
2025-09-22 12:04:05 -04:00
Kyle Penfound
4e0ad19142
Proper support for shell input (#189)
* add options for shell

Signed-off-by: kpenfound <kyle@dagger.io>

assemble dagger command in new step with output

Signed-off-by: kpenfound <kyle@dagger.io>

fixing some inline bash

Signed-off-by: kpenfound <kyle@dagger.io>

wrap conditional inputs in quotes

Signed-off-by: kpenfound <kyle@dagger.io>

use cat for heredoc script file

Signed-off-by: kpenfound <kyle@dagger.io>

missing space in heredoc

Signed-off-by: kpenfound <kyle@dagger.io>

add tab ignore and dagger shebang

Signed-off-by: kpenfound <kyle@dagger.io>

use toJson and jq to safely write the shell input to a file

Signed-off-by: kpenfound <kyle@dagger.io>

put DAGGER_COMMAND in a variable

Signed-off-by: kpenfound <kyle@dagger.io>

missing semicolon for the dagger command

Signed-off-by: kpenfound <kyle@dagger.io>

safely evaluate if shell is set

Signed-off-by: kpenfound <kyle@dagger.io>

extra > in shell file write

Signed-off-by: kpenfound <kyle@dagger.io>

add some logging

Signed-off-by: kpenfound <kyle@dagger.io>

strip extra newline from jq when shell is not set

Signed-off-by: kpenfound <kyle@dagger.io>

debugging

Signed-off-by: kpenfound <kyle@dagger.io>

toJSON and jq will send null instead of empty string with no input

Signed-off-by: kpenfound <kyle@dagger.io>

safely handle all inputs

Signed-off-by: kpenfound <kyle@dagger.io>

did i fix the wrong thing?

Signed-off-by: kpenfound <kyle@dagger.io>

change up the approach a bit for an easier diff

Signed-off-by: kpenfound <kyle@dagger.io>

fix shell test

Signed-off-by: kpenfound <kyle@dagger.io>

single quotes around shell input

Signed-off-by: kpenfound <kyle@dagger.io>

try with piped input

Signed-off-by: kpenfound <kyle@dagger.io>

try single quotes again

Signed-off-by: kpenfound <kyle@dagger.io>

debug

Signed-off-by: kpenfound <kyle@dagger.io>

debug

Signed-off-by: kpenfound <kyle@dagger.io>

fix shell test

Signed-off-by: kpenfound <kyle@dagger.io>

does shell emit a newline?

Signed-off-by: kpenfound <kyle@dagger.io>

remove the trailing newline if its in stdout

Signed-off-by: kpenfound <kyle@dagger.io>

break the trailing output test

Signed-off-by: kpenfound <kyle@dagger.io>

fix shell test

Signed-off-by: kpenfound <kyle@dagger.io>

missed !

Signed-off-by: kpenfound <kyle@dagger.io>

add comment about weird test

Signed-off-by: kpenfound <kyle@dagger.io>

* use echo -n in shell test

Signed-off-by: kpenfound <kyle@dagger.io>

---------

Signed-off-by: kpenfound <kyle@dagger.io>
2025-09-16 13:19:53 -04:00
Justin Chadwell
710906f307 feat: add traceURL output
Signed-off-by: Justin Chadwell <me@jedevc.com>
2025-08-28 11:12:27 -07:00
Justin Chadwell
b292effaa3 chore: fix multiline output
Signed-off-by: Justin Chadwell <me@jedevc.com>
2024-11-11 10:54:15 -07:00
Justin Chadwell
f9a4c9fc12 tests: add test for multiline output
Signed-off-by: Justin Chadwell <me@jedevc.com>
2024-11-11 10:54:15 -07:00
kpenfound
b61bdaa567
add no call test
Signed-off-by: kpenfound <kyle@dagger.io>
2024-11-11 10:09:51 -07:00
kpenfound
6d43cdba87
move call test to its own job
Signed-off-by: kpenfound <kyle@dagger.io>
2024-11-11 10:07:18 -07:00
kpenfound
367e5106ee
alias call to args and make it optional
Signed-off-by: kpenfound <kyle@dagger.io>
2024-11-10 22:08:23 -07:00
Justin Chadwell
33170d0344
test: add version tests (#153)
* test: add versioning tests

Signed-off-by: Justin Chadwell <me@jedevc.com>

* feat: add output for action

To chain on from the github action, it's very useful to be able to get
the output from an action.

Signed-off-by: Justin Chadwell <me@jedevc.com>

---------

Signed-off-by: Justin Chadwell <me@jedevc.com>
2024-10-25 16:40:22 +01:00
Jeremy Adams
7815dae500 chore: Set aside old content
Signed-off-by: Jeremy Adams <jeremy@dagger.io>
2023-11-14 11:31:05 -08:00
dependabot[bot]
36a9f322f9
Bump docker/bake-action from 1 to 2
Bumps [docker/bake-action](https://github.com/docker/bake-action) from 1 to 2.
- [Release notes](https://github.com/docker/bake-action/releases)
- [Commits](https://github.com/docker/bake-action/compare/v1...v2)

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>

---
updated-dependencies:
- dependency-name: docker/bake-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-06 13:17:56 +02:00
dependabot[bot]
9199d7a2ea
Bump codecov/codecov-action from 2 to 3
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 2 to 3.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/master/CHANGELOG.md)
- [Commits](https://github.com/codecov/codecov-action/compare/v2...v3)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-06 10:11:06 +00:00
dependabot[bot]
7e0b7293f7
Bump actions/checkout from 2 to 3
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-02 10:14:17 +00:00
CrazyMax
a99366016f
Use major
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-07-24 00:36:41 +02:00
dependabot[bot]
7fca10f4b5
Bump codecov/codecov-action from 1 to 2.0.1
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 1 to 2.0.1.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/master/CHANGELOG.md)
- [Commits](https://github.com/codecov/codecov-action/compare/v1...v2.0.1)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-20 10:14:39 +00:00
CrazyMax
52d0d7f5e6
Fix package
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-06-28 19:21:47 +02:00
CrazyMax
6cffa4655d
Fix branch name
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-05-30 09:44:17 +02:00
CrazyMax
166ec1a4fd
Add workflows 2021-05-30 07:54:43 +02:00