Skip to content

Commit

Permalink
Goreleaser and Dockerfile mods after migrating ui-backend
Browse files Browse the repository at this point in the history
  • Loading branch information
thehejik committed Aug 7, 2023
1 parent 9c68173 commit 43eff9d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
9 changes: 6 additions & 3 deletions backend/.goreleaser-next.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ dockers:
goos: linux
goarch: amd64
use: buildx
dockerfile: backend/Dockerfile

ids:
- epinio-ui-amd64
Expand All @@ -98,13 +99,14 @@ dockers:
- "--platform=linux/amd64"

extra_files:
- ui/
- backend/ui/

# arm64
- id: epinio-ui-arm64
goos: linux
goarch: arm64
use: buildx
dockerfile: backend/Dockerfile

ids:
- epinio-ui-arm64
Expand All @@ -125,13 +127,14 @@ dockers:
- "--platform=linux/arm64/v8"

extra_files:
- ui/
- backend/ui/

# s390x
- id: epinio-ui-s390x
goos: linux
goarch: s390x
use: buildx
dockerfile: backend/Dockerfile

ids:
- epinio-ui-s390x
Expand All @@ -152,7 +155,7 @@ dockers:
- "--platform=linux/s390x"

extra_files:
- ui/
- backend/ui/

docker_manifests:
- id: epinio-ui
Expand Down
9 changes: 6 additions & 3 deletions backend/.goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ dockers:
goos: linux
goarch: amd64
use: buildx
dockerfile: backend/Dockerfile

# IDs to filter the binaries/packages.
ids:
Expand Down Expand Up @@ -110,13 +111,14 @@ dockers:
# This field does not support wildcards, you can add an entire folder here
# and use wildcards when you `COPY`/`ADD` in your Dockerfile.
extra_files:
- ui/
- backend/ui/

# arm64
- id: epinio-ui-arm64
goos: linux
goarch: arm64
use: buildx
dockerfile: backend/Dockerfile

# IDs to filter the binaries/packages.
ids:
Expand Down Expand Up @@ -152,13 +154,14 @@ dockers:
# This field does not support wildcards, you can add an entire folder here
# and use wildcards when you `COPY`/`ADD` in your Dockerfile.
extra_files:
- ui/
- backend/ui/

# s390x
- id: epinio-ui-s390x
goos: linux
goarch: s390x
use: buildx
dockerfile: backend/Dockerfile

# IDs to filter the binaries/packages.
ids:
Expand Down Expand Up @@ -194,7 +197,7 @@ dockers:
# This field does not support wildcards, you can add an entire folder here
# and use wildcards when you `COPY`/`ADD` in your Dockerfile.
extra_files:
- ui/
- backend/ui/

docker_manifests:
-
Expand Down
2 changes: 1 addition & 1 deletion backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ FROM registry.suse.com/bci/bci-micro
ARG DIST_BINARY=src/jetstream/jetstream
COPY ${DIST_BINARY} /epinio-ui

COPY ui /ui
COPY backend/ui /ui

ENTRYPOINT ["/epinio-ui"]

0 comments on commit 43eff9d

Please sign in to comment.