Skip to content
Merged
Show file tree
Hide file tree
Changes from 19 commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
586c410
Build monoimage for Back/Frontend and MLWorker
Inokinoki Aug 4, 2023
51b1de6
Temporary disable ARM builder in build-images.yml
Inokinoki Aug 10, 2023
e3fd3fd
Continue building Docker image even without AWS ARM builder
Inokinoki Aug 10, 2023
f3f04ff
Remove legacy frontend and backend building in release Docker image
Inokinoki Aug 10, 2023
7d41d09
Merge branch 'main' into fix-docker-build-monoimage
Inokinoki Aug 10, 2023
59cad98
Limit the connection time to one minute for builder
Inokinoki Aug 10, 2023
9d76ea3
Continue the other steps on error
Inokinoki Aug 10, 2023
2d1bf43
Enable release image build for version tags
Inokinoki Aug 11, 2023
3ae13f3
Rename backend to mono in docker compose
Inokinoki Aug 11, 2023
750c171
Merge branch 'main' of https://github.com/Giskard-AI/giskard into fix…
Inokinoki Aug 29, 2023
b4bb261
Remove common dir from Dockerfile
Inokinoki Aug 29, 2023
7433a70
Merge branch 'main' of https://github.com/Giskard-AI/giskard into fix…
Inokinoki Aug 29, 2023
969fdb1
Merge branch 'main' into fix-docker-build-monoimage
Inokinoki Aug 30, 2023
97ffbef
Merge branch 'main' of https://github.com/Giskard-AI/giskard into fix…
Inokinoki Sep 4, 2023
4cd93ac
Recover the original Docker compose file
Inokinoki Sep 4, 2023
db6054d
Merge remote-tracking branch 'origin/fix-docker-build-monoimage' into…
Inokinoki Sep 4, 2023
72f29d0
Sync Docker compose file with main
Inokinoki Sep 4, 2023
ba1cc19
Build image with certain branch using Docker buildx
Inokinoki Sep 4, 2023
ac64c49
Merge branch 'main' into fix-docker-build-monoimage
Inokinoki Sep 4, 2023
a1692b3
Remove continue-on-error in GitHub workflows
Inokinoki Sep 4, 2023
248ba7a
Merge remote-tracking branch 'origin/fix-docker-build-monoimage' into…
Inokinoki Sep 4, 2023
6dd70a1
Merge branch 'main' into fix-docker-build-monoimage
Inokinoki Sep 5, 2023
c40c81c
Merge branch 'main' into fix-docker-build-monoimage
Inokinoki Sep 8, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 11 additions & 17 deletions .github/workflows/build-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ jobs:
id: builder
uses: docker/setup-buildx-action@master


- name: "Append ARM buildx builder from AWS"
uses: baschny/append-buildx-action@v1
timeout-minutes: 1 # Limit the connection time to one minute
continue-on-error: true
with:
builder: ${{ steps.builder.outputs.name }}
endpoint: ssh://${{ secrets.ARM_SSH_CONNECTION_STRING }}
Expand All @@ -43,25 +44,18 @@ jobs:
username: giskardai
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push
uses: docker/bake-action@master
- name: Build and push image based on the current branch
env:
TAG: ${{ (steps.extract_branch.outputs.tag == 'main' && 'dev') || steps.extract_branch.outputs.tag }}
with:
push: true
set: |
*.attest=type=provenance,enabled=false
*.platform=linux/amd64
*.platform=linux/arm64
IMAGE: docker.io/giskardai/giskard
run: |
docker buildx build \
--platform linux/amd64,linux/arm64 \
--tag $IMAGE:${{ steps.extract_branch.outputs.tag }} \
--file Dockerfile \
--push \
.

- name: Invoke deployment hook
if: ${{ steps.extract_branch.outputs.branch == 'main' }}
run: |
curl -L --silent --max-time 900 ${{ secrets.TEST_SERVER_WEBHOOK_URL_BASE }}/redeploy-dev

- name: Remove containers and volumes
run: |
docker-compose down -v --remove-orphans
docker builder prune --force --keep-storage=10GB


56 changes: 5 additions & 51 deletions .github/workflows/build-release-images.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Build and publish released version

on:
# push:
# tags:
# - "v*.*.*"
push:
tags:
- "v*.*.*"
workflow_dispatch:

jobs:
Expand All @@ -20,6 +20,8 @@ jobs:

- name: Append ARM buildx builder from AWS
uses: baschny/append-buildx-action@v1
timeout-minutes: 1 # Limit the connection time to one minute
continue-on-error: true
with:
builder: ${{ steps.builder.outputs.name }}
endpoint: ssh://${{ secrets.ARM_SSH_CONNECTION_STRING }}
Expand All @@ -38,54 +40,6 @@ jobs:
username: giskardai
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build <current version>+latest backend image
if: ${{ steps.tag.outputs.name == steps.tag.outputs.latest_version }}
env:
IMAGE: docker.io/giskardai/backend
run: |
docker buildx build \
--platform linux/amd64,linux/arm64 \
--tag $IMAGE:latest \
--tag $IMAGE:${{ steps.tag.outputs.version }} \
--file backend/src/main/docker/app/app.dockerfile \
--push \
.

- name: Build <current version> backend image
if: ${{ steps.tag.outputs.name != steps.tag.outputs.latest_version }}
env:
IMAGE: docker.io/giskardai/backend
run: |
docker buildx build \
--platform linux/amd64,linux/arm64 \
--tag $IMAGE:${{ steps.tag.outputs.version }} \
--file backend/src/main/docker/app/app.dockerfile \
--push \
.

- name: Build <current version>+latest frontend image
if: ${{ steps.tag.outputs.name == steps.tag.outputs.latest_version }}
env:
IMAGE: docker.io/giskardai/frontend
run: |
docker buildx build \
--platform linux/amd64,linux/arm64 \
--tag $IMAGE:latest \
--tag $IMAGE:${{ steps.tag.outputs.version }} \
--push \
frontend

- name: Build <current version> frontend image
if: ${{ steps.tag.outputs.name != steps.tag.outputs.latest_version }}
env:
IMAGE: docker.io/giskardai/frontend
run: |
docker buildx build \
--platform linux/amd64,linux/arm64 \
--tag $IMAGE:${{ steps.tag.outputs.version }} \
--push \
frontend

- name: Build <current version>+latest global image
if: ${{ steps.tag.outputs.name == steps.tag.outputs.latest_version }}
env:
Expand Down
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ WORKDIR /app
COPY python-client python-client
COPY frontend frontend
COPY backend backend
COPY common common
COPY gradle gradle
# Copying .git to make gradle-git-properties gradle plugin work
COPY .git .git
Expand Down