Skip to content

Commit

Permalink
Merge pull request #2 from peccu/fix-build-image
Browse files Browse the repository at this point in the history
Fix build image action
  • Loading branch information
peccu authored Sep 14, 2022
2 parents 2f02185 + 98e2605 commit b56f6b6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,8 @@ jobs:
with:
context: ./build
push: true
build-args: ${{ needs.create-release.outputs.app_version }}
build-args: |
version=${{ needs.create-release.outputs.app_version }}
tags: |
${{ env.DOCKER_HUB_USER }}/${{ needs.create-release.outputs.pj_name }}:latest
${{ env.DOCKER_HUB_USER }}/${{ needs.create-release.outputs.pj_name }}:${{ needs.create-release.outputs.app_version }}
3 changes: 2 additions & 1 deletion build/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
FROM alpine:latest

RUN apk add --update --no-cache rsync
ARG version
RUN echo building version=$version
RUN apk add --update --no-cache rsync
ENV APP=preview-image-folder
ENV PKG=${APP}-${version}-x86_64-unknown-linux-musl
ADD https://github.com/peccu/${APP}/releases/download/${version}/${PKG}.tar.gz /app/
Expand Down

0 comments on commit b56f6b6

Please sign in to comment.