Skip to content

Commit

Permalink
cicd: update go version
Browse files Browse the repository at this point in the history
Update Golang version in docker-compose.yaml file to support
Linux/ARM64, and release Linux/ARM64 quay/clair docker image.

Signed-off-by: odidev <odidev@puresoftware.com>
  • Loading branch information
odidev authored and hdonnay committed Sep 15, 2021
1 parent ace31fe commit 673ab1e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/cut-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -177,16 +177,20 @@ jobs:
id: download
with:
name: release
- name: Build Release Container
- name: Set up QEMU
uses: docker/setup-qemu-action@master
with:
platforms: all
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Build and Publish Release Container
run: |
d=$(mktemp -d)
trap 'rm -rf "$d"' EXIT
tar -xz -f ${{steps.download.outputs.download-path}}/clair.tar.gz --strip-components=1 -C "$d"
docker build --build-arg CLAIR_VERSION --tag "${TAG}" "$d"
- name: Publish Release Container
run: |
docker login -u "${QUAY_USER}" -p '${{ secrets.QUAY_TOKEN }}' quay.io
docker push "${TAG}"
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
docker buildx build --push --platform linux/amd64,linux/arm64 --build-arg CLAIR_VERSION --tag "${TAG}" "$d"
deploy-documentation:
name: Deploy Documentation
Expand Down
10 changes: 5 additions & 5 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ services:

notifier:
container_name: clair-notifier
image: quay.io/projectquay/golang:1.16
image: quay.io/projectquay/golang:1.17
volumes:
- "./:/src/clair/"
environment:
Expand All @@ -93,7 +93,7 @@ services:
# this should only be created and deleted via the make target "local-dev-notifier-test"
notifier-test-mode:
container_name: clair-notifier
image: quay.io/projectquay/golang:1.16
image: quay.io/projectquay/golang:1.17
volumes:
- "./:/src/clair/"
environment:
Expand All @@ -112,7 +112,7 @@ services:

indexer:
container_name: clair-indexer
image: quay.io/projectquay/golang:1.16
image: quay.io/projectquay/golang:1.17
volumes:
- "./:/src/clair/"
environment:
Expand All @@ -134,7 +134,7 @@ services:
## allows layer fetching over localhost
indexer-quay:
container_name: clair-indexer
image: quay.io/projectquay/golang:1.16
image: quay.io/projectquay/golang:1.17
volumes:
- "./:/src/clair/"
environment:
Expand All @@ -156,7 +156,7 @@ services:

matcher:
container_name: clair-matcher
image: quay.io/projectquay/golang:1.16
image: quay.io/projectquay/golang:1.17
volumes:
- "./:/src/clair/"
environment:
Expand Down

0 comments on commit 673ab1e

Please sign in to comment.