Skip to content

Commit

Permalink
[CI] Add workflow to synchronize ubuntu base image (#2526) (#2527)
Browse files Browse the repository at this point in the history
* feat: add sync workflow for ubuntu base image



* fix: add todo comment



* fix: docker pull step



* fix: invalid command



* fix: add docker tagging



* fix: invalid config



* fix: enable arm



* fix: add tag



* fix: invalid command



* fix: add debug job



* fix: invalid command



* fix: invalid command



* fix: invalid command



* fix: refactor



* fix: add push image



* fix: image not found error



* fix: use docker build action



* fix: add docker file



* fix: add docker meta



* fix: invalid command



* fix: add build command for buildbase



* fix: deleted unnecessary workflow



* fix: file name



* fix: image name



* fix: invalid name



* fix: resolve warning



* fix: deleted unnecessary file



* fix: add file to event path



* fix: add schedule event



---------

Signed-off-by: hlts2 <hiroto.funakoshi.hiroto@gmail.com>
Co-authored-by: Hiroto Funakoshi <hiroto.funakoshi.hiroto@gmail.com>
  • Loading branch information
vdaas-ci and hlts2 authored Jul 17, 2024
1 parent c6777f3 commit 839bb2b
Show file tree
Hide file tree
Showing 4 changed files with 78 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/dockers-buildbase-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
#
# Copyright (C) 2019-2024 vdaas.org vald team <vald@vdaas.org>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
name: "Build docker image: buildbase"
on:
schedule:
- cron: "0 1 * * *"
push:
branches:
- "main"
- "release/v*.*"
- "!release/v*.*.*"
tags:
- "*.*.*"
- "v*.*.*"
- "*.*.*-*"
- "v*.*.*-*"
pull_request:
paths:
- ".github/actions/docker-build/action.yaml"
- ".github/workflows/_docker-image.yaml"
- ".github/workflows/dockers-buildbase-image.yml"
- "dockers/buildbase/Dockerfile"
pull_request_target:
paths:
- ".github/actions/docker-build/action.yaml"
- ".github/workflows/_docker-image.yaml"
- ".github/workflows/dockers-buildbase-image.yml"
- "dockers/buildbase/Dockerfile"
jobs:
build:
uses: ./.github/workflows/_docker-image.yaml
with:
target: buildbase
platforms: linux/amd64,linux/arm64
secrets: inherit
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ AGENT_NGT_IMAGE = $(NAME)-agent-ngt
AGENT_FAISS_IMAGE = $(NAME)-agent-faiss
AGENT_SIDECAR_IMAGE = $(NAME)-agent-sidecar
AGENT_IMAGE = $(NAME)-agent
BUILDBASE_IMAGE = $(NAME)-buildbase
CI_CONTAINER_IMAGE = $(NAME)-ci-container
DEV_CONTAINER_IMAGE = $(NAME)-dev-container
DISCOVERER_IMAGE = $(NAME)-discoverer-k8s
Expand Down
11 changes: 11 additions & 0 deletions Makefile.d/docker.mk
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,17 @@ docker/build/manager-index:
IMAGE=$(MANAGER_INDEX_IMAGE) \
docker/build/image

.PHONY: docker/name/buildbase
docker/name/buildbase:
@echo "$(ORG)/$(BUILDBASE_IMAGE)"

.PHONY: docker/build/buildbase
## build buildbase image
docker/build/buildbase:
@make DOCKERFILE="$(ROOTDIR)/dockers/buildbase/Dockerfile" \
IMAGE=$(BUILDBASE_IMAGE) \
docker/build/image

.PHONY: docker/name/ci-container
docker/name/ci-container:
@echo "$(ORG)/$(CI_CONTAINER_IMAGE)"
Expand Down
18 changes: 18 additions & 0 deletions dockers/buildbase/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# syntax = docker/dockerfile:latest
#
# Copyright (C) 2019-2024 vdaas.org vald team <vald@vdaas.org>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

FROM ubuntu:devel AS builder

0 comments on commit 839bb2b

Please sign in to comment.