Skip to content

Commit

Permalink
Fix docker containers adding missing files
Browse files Browse the repository at this point in the history
Signed-off-by: Antonio Navarro <antnavper@gmail.com>
  • Loading branch information
ajnavarro committed May 21, 2024
1 parent 8f87ff0 commit eacc09a
Show file tree
Hide file tree
Showing 6 changed files with 64 additions and 7 deletions.
38 changes: 37 additions & 1 deletion .github/goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@ dockers:
- "--label=org.opencontainers.image.version={{.Version}}"
ids:
- gno
extra_files:
- examples
- gnovm/stdlibs
- gnovm/tests/stdlibs
- use: buildx
dockerfile: Dockerfile.gno.release
goos: linux
Expand All @@ -123,6 +127,10 @@ dockers:
- "--label=org.opencontainers.image.version={{.Version}}"
ids:
- gno
extra_files:
- examples
- gnovm/stdlibs
- gnovm/tests/stdlibs
- use: buildx
dockerfile: Dockerfile.gno.release
goos: linux
Expand All @@ -139,6 +147,10 @@ dockers:
- "--label=org.opencontainers.image.version={{.Version}}"
ids:
- gno
extra_files:
- examples
- gnovm/stdlibs
- gnovm/tests/stdlibs
- use: buildx
dockerfile: Dockerfile.gno.release
goos: linux
Expand All @@ -155,6 +167,10 @@ dockers:
- "--label=org.opencontainers.image.version={{.Version}}"
ids:
- gno
extra_files:
- examples
- gnovm/stdlibs
- gnovm/tests/stdlibs

# gnoland
- use: buildx
Expand All @@ -172,6 +188,11 @@ dockers:
- "--label=org.opencontainers.image.version={{.Version}}"
ids:
- gnoland
extra_files:
- gno.land/genesis/genesis_balances.txt
- gno.land/genesis/genesis_txs.jsonl
- examples
- gnovm/stdlibs
- use: buildx
dockerfile: Dockerfile.gnoland.release
goos: linux
Expand All @@ -187,6 +208,11 @@ dockers:
- "--label=org.opencontainers.image.version={{.Version}}"
ids:
- gnoland
extra_files:
- gno.land/genesis/genesis_balances.txt
- gno.land/genesis/genesis_txs.jsonl
- examples
- gnovm/stdlibs
- use: buildx
dockerfile: Dockerfile.gnoland.release
goos: linux
Expand All @@ -203,6 +229,11 @@ dockers:
- "--label=org.opencontainers.image.version={{.Version}}"
ids:
- gnoland
extra_files:
- gno.land/genesis/genesis_balances.txt
- gno.land/genesis/genesis_txs.jsonl
- examples
- gnovm/stdlibs
- use: buildx
dockerfile: Dockerfile.gnoland.release
goos: linux
Expand All @@ -219,6 +250,11 @@ dockers:
- "--label=org.opencontainers.image.version={{.Version}}"
ids:
- gnoland
extra_files:
- gno.land/genesis/genesis_balances.txt
- gno.land/genesis/genesis_txs.jsonl
- examples
- gnovm/stdlibs
# gnokey
- use: buildx
dockerfile: Dockerfile.gnokey.release
Expand Down Expand Up @@ -282,7 +318,7 @@ dockers:
- "--label=org.opencontainers.image.version={{.Version}}"
ids:
- gnokey

# gnoweb
- use: buildx
dockerfile: Dockerfile.gnoweb.release
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/releaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ jobs:

- uses: goreleaser/goreleaser-action@v5
with:
distribution: goreleaser-pro
version: latest
args: release --clean --config ./.github/goreleaser.yaml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GORELEASER_KEY: ${{ secrets.GORELEASER_TOKEN }}
11 changes: 9 additions & 2 deletions Dockerfile.gno.release
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
FROM scratch
COPY . /
FROM busybox

COPY ./gno /gno
COPY ./examples /gnoroot/examples/
COPY ./gnovm/stdlibs /gnoroot/gnovm/stdlibs/
COPY ./gnovm/tests/stdlibs /gnoroot/gnovm/tests/stdlibs/

ENV GNOROOT="/gnoroot/"

ENTRYPOINT [ "/gno" ]
CMD [ "" ]
4 changes: 3 additions & 1 deletion Dockerfile.gnokey.release
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
FROM scratch
FROM busybox

COPY . /

ENTRYPOINT [ "/gnokey" ]
CMD [ "" ]
12 changes: 10 additions & 2 deletions Dockerfile.gnoland.release
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
FROM scratch
COPY . /
FROM busybox

COPY ./gnoland /gnoland
COPY ./examples /gnoroot/examples/
COPY ./gnovm/stdlibs /gnoroot/gnovm/stdlibs/
COPY ./gno.land/genesis/genesis_balances.txt /gnoroot/gno.land/genesis/genesis_balances.txt
COPY ./gno.land/genesis/genesis_txs.jsonl /gnoroot/gno.land/genesis/genesis_txs.jsonl

ENV GNOROOT="/gnoroot/"

EXPOSE 26657 36657
ENTRYPOINT [ "/gnoland" ]
CMD [ "" ]
4 changes: 3 additions & 1 deletion Dockerfile.gnoweb.release
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
FROM scratch
FROM busybox

COPY . /

EXPOSE 8888
ENTRYPOINT [ "/gnoweb" ]
CMD [ "" ]

0 comments on commit eacc09a

Please sign in to comment.