Skip to content

Commit 2c250ca

Browse files
committed
chore: install version from the release
Release-As: 1.0.5
1 parent a9d57b1 commit 2c250ca

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ jobs:
7474
- name: Build docker
7575
uses: meysam81/build-docker@main
7676
with:
77+
build-args: |
78+
VERSION=${{ needs.release-please.outputs.tag_name }}
7779
image-name: ghcr.io/meysam81/${{ github.event.repository.name }}
7880
image-extra-tags: ghcr.io/meysam81/${{ github.event.repository.name }}:${{ needs.release-please.outputs.tag_name }}
7981

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
FROM busybox:1
22

3+
ARG VERSION=latest
4+
ENV VERSION=${VERSION}
5+
36
COPY install.sh /
47

58
ENTRYPOINT ["/install.sh"]
6-
CMD ["--directory", "/", "--version", "latest"]
9+
CMD ["--directory", "/", "--version", "${VERSION}"]

0 commit comments

Comments
 (0)