Skip to content

Commit

Permalink
Set correct build-args syntax + fix amazon image (#337)
Browse files Browse the repository at this point in the history
* Set correct build-args syntax + fix amazon image

* Remove added quotes
  • Loading branch information
TimmersThomas committed May 3, 2024
1 parent 912e2e3 commit cfc1373
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ jobs:
env:
goreleaser_meta: ${{ steps.goreleaser.outputs.metadata }}
run: |
version=$( echo $goreleaser_meta | jq '.version' )
commit=$( echo $goreleaser_meta | jq '.commit' )
date=$( echo $goreleaser_meta | jq '.date' )
version=$( echo $goreleaser_meta | jq -r '.version' )
commit=$( echo $goreleaser_meta | jq -r '.commit' )
date=$( echo $goreleaser_meta | jq -r '.date' )
echo "version=$version" >> $GITHUB_OUTPUT
echo "commit=$commit" >> $GITHUB_OUTPUT
Expand Down Expand Up @@ -85,8 +85,8 @@ jobs:
uses: docker/build-push-action@v5
with:
build-args: |
VERSION:${{ steps.goreleaser_meta_parser.outputs.version }}
COMMIT_DATE:${{ steps.goreleaser_meta_parser.outputs.date }}
VERSION=${{ steps.goreleaser_meta_parser.outputs.version }}
COMMIT_DATE=${{ steps.goreleaser_meta_parser.outputs.date }}
context: .
target: deploy
push: true
Expand Down Expand Up @@ -119,8 +119,8 @@ jobs:
uses: docker/build-push-action@v5
with:
build-args: |
VERSION:${{ steps.goreleaser_meta_parser.outputs.version }}
COMMIT_DATE:${{ steps.goreleaser_meta_parser.outputs.date }}
VERSION=${{ steps.goreleaser_meta_parser.outputs.version }}
COMMIT_DATE=${{ steps.goreleaser_meta_parser.outputs.date }}
context: .
target: amazonlinux
push: true
Expand Down
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ RUN mkdir -p /config
ENV TZ=Etc/UTC
ENV CLI_CRON="0 2 * * *"

RUN groupadd -r raito && useradd -r -g raito raito
RUN groupadd -r raito && useradd -d /home/raito -g raito raito

RUN chown raito:raito /config

COPY --from=build /app/raito /raito
Expand Down

0 comments on commit cfc1373

Please sign in to comment.