Skip to content

Commit

Permalink
Set correct build-args syntax + fix amazon image
Browse files Browse the repository at this point in the history
  • Loading branch information
TimmersThomas committed May 3, 2024
1 parent 912e2e3 commit 606cd8a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
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 606cd8a

Please sign in to comment.