Skip to content

Commit

Permalink
Fix Docker workflow
Browse files Browse the repository at this point in the history
The `docker.yml` GitHub Actions workflow was using the wrong syntax for
a YAML multiline string, causing it to fail as in [1]. The `docker run`
invocation was also incorrect.

[1]: https://github.com/cloudflare/privacy-gateway-server-go/actions/runs/9097813677
  • Loading branch information
tgeoghegan authored and cjpatton committed May 16, 2024
1 parent e0d3ed8 commit a2f6305
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ jobs:
steps:
- uses: actions/checkout@v4
- run: echo "GIT_REVISION=$(git describe --always --dirty=-modified)" >> $GITHUB_ENV
- run: docker build \
--tag "privacy-gateway-server-go" \
--build-arg GIT_REVISION=${GIT_REVISION} \
-f Dockerfile \
.
- run: docker run --rm --tag "privacy-gateway-server-go" -version
- run: |-
docker build \
--tag "privacy-gateway-server-go" \
--build-arg GIT_REVISION=${GIT_REVISION} \
-f Dockerfile \
.
- run: docker run --entrypoint /privacy-gateway-server --rm privacy-gateway-server-go -version

0 comments on commit a2f6305

Please sign in to comment.