Skip to content

Commit

Permalink
temp 3
Browse files Browse the repository at this point in the history
  • Loading branch information
holashchand committed Aug 17, 2024
1 parent c959e2a commit 8a56040
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 31 deletions.
39 changes: 10 additions & 29 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,34 +58,16 @@ jobs:
run: |
df -h
docker image ls
build-go:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Docker Compose
run: |
curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
docker-compose --version
docker system df
- name: Login to Docker Registry
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build Go Services
run: make build-go
- name: Publish build artifacts
run: make publish-builds
- name: Check space after tests
run: |
df -h
docker image ls
docker system df
build-node:
build-services:
strategy:
matrix:
include:
- os: ubuntu-latest
name: notification-service
platform: linux/amd64
- os: ubuntu-latest
name: metrics
platform: linux/amd64
- os: ubuntu-latest
name: identity-service
platform: linux/amd64
Expand Down Expand Up @@ -120,9 +102,9 @@ jobs:
uses: actions/cache@v4
with:
path: /tmp/docker-layer-cache
key: ${{ runner.os }}-docker-cache-node-${{ matrix.name }}
key: ${{ runner.os }}-docker-cache-${{ matrix.name }}
restore-keys: |
${{ runner.os }}-docker-cache-node-${{ matrix.name }}
${{ runner.os }}-docker-cache-${{ matrix.name }}
- name: Build Node Services
env:
CACHE_SRC: type=local,src=/tmp/docker-layer-cache
Expand All @@ -140,8 +122,7 @@ jobs:
test-builds-2:
needs:
- build-java
- build-go
- build-node
- build-services
strategy:
matrix:
include:
Expand Down
2 changes: 1 addition & 1 deletion services/metrics/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ build: metrics-server
@echo $(source)

docker:
@docker build -t $(IMAGE) .
@docker buildx build --platform=$$PLATFORM --cache-from=$$CACHE_SRC --cache-to=$$CACHE_DST -t $(IMAGE) .
publish:
@docker push $(IMAGE)
2 changes: 1 addition & 1 deletion services/notification-service/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ run: ./notification-service
./notification-service --scheme http --port 8765

docker:
docker build -t local/sunbird-rc-notification-service .
docker buildx build --platform=$$PLATFORM --cache-from=$$CACHE_SRC --cache-to=$$CACHE_DST -t local/sunbird-rc-notification-service .

0 comments on commit 8a56040

Please sign in to comment.