Skip to content

Commit

Permalink
v2.8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
morlay committed Jun 23, 2023
1 parent b015263 commit 128537c
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 75 deletions.
144 changes: 71 additions & 73 deletions .github/workflows/docker-publish-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,69 +6,68 @@ on:
- 'main'

jobs:
docker-base-image:
runs-on: ubuntu-latest
strategy:
matrix:
component:
- chartserver
- trivy-adapter
- core
- db
- exporter
- jobservice
- log
- nginx
- notary-server
- notary-signer
- portal
- prepare
- redis
- registry
- registryctl

defaults:
run:
working-directory: ./harbor

steps:
- uses: actions/checkout@v3
with:
submodules: true

- uses: docker/setup-qemu-action@v2
- uses: docker/setup-buildx-action@v2
with:
driver: docker-container
driver-opts: network=host
- uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- run: cd .. && make patch

- id: prepare
run: echo "tag=$(cat ../version)" >> $GITHUB_ENV

- name: Build base image
uses: docker/build-push-action@v3
with:
context: ./harbor
file: ./harbor/make/photon/${{ matrix.component }}/Dockerfile.base
platforms: linux/amd64,linux/arm64
labels: |
org.opencontainers.image.source=https://github.com/${{ github.repository }}
org.opencontainers.image.revision=${{ env.tag }}
push: ${{ github.event_name != 'pull_request' }}
tags: ghcr.io/${{ github.repository }}/harbor-${{ matrix.component }}-base:${{ env.tag }}
# docker-base-image:
# runs-on: ubuntu-latest
# strategy:
# matrix:
# component:
# - trivy-adapter
# - core
# - db
# - exporter
# - jobservice
# - log
# - nginx
# - notary-server
# - notary-signer
# - portal
# - prepare
# - redis
# - registry
# - registryctl
#
# defaults:
# run:
# working-directory: ./harbor
#
# steps:
# - uses: actions/checkout@v3
# with:
# submodules: true
#
# - uses: docker/setup-qemu-action@v2
# - uses: docker/setup-buildx-action@v2
# with:
# driver: docker-container
# driver-opts: network=host
# - uses: docker/login-action@v2
# with:
# registry: ghcr.io
# username: ${{ github.actor }}
# password: ${{ secrets.GITHUB_TOKEN }}
#
# - run: cd .. && make patch
#
# - id: prepare
# run: echo "tag=$(cat ../version)" >> $GITHUB_ENV
#
# - name: Build base image
# uses: docker/build-push-action@v3
# with:
# context: ./harbor
# file: ./harbor/make/photon/${{ matrix.component }}/Dockerfile.base
# platforms: linux/amd64,linux/arm64
# labels: |
# org.opencontainers.image.source=https://github.com/${{ github.repository }}
# org.opencontainers.image.revision=${{ env.tag }}
# push: ${{ github.event_name != 'pull_request' }}
# tags: ghcr.io/${{ github.repository }}/harbor-${{ matrix.component }}-base:${{ env.tag }}

docker-image:
needs:
- docker-base-image
# needs:
# - docker-base-image

runs-on: ubuntu-18.04
runs-on: ubuntu-latest

strategy:
fail-fast: false
Expand All @@ -85,7 +84,6 @@ jobs:
- notary
- trivy_adapter
- redis
- chart_server
- standalone_db_migrator
- exporter

Expand All @@ -100,22 +98,22 @@ jobs:

- uses: actions/setup-go@v3
with:
go-version: '^1.17'
go-version: '^1.20.x'

- uses: docker/setup-qemu-action@v2
- uses: docker/setup-buildx-action@v2
with:
driver: docker-container
driver-opts: network=host

- run: cd .. && make patch

- uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- run: cd .. && make patch

- id: prepare
run: echo "tag=$(cat ../version)" >> $GITHUB_ENV

Expand All @@ -133,18 +131,18 @@ jobs:
CTX="BUILDBIN=true VERSIONTAG=${{ env.tag }} BASEIMAGETAG=${{ env.tag }} MULTIARCH=${MULTIARCH} IMAGENAMESPACE=${IMAGENAMESPACE} BASEIMAGENAMESPACE=${BASEIMAGENAMESPACE} TRIVYFLAG=${TRIVYFLAG} CHARTFLAG=${CHARTFLAG} NOTARYFLAG=${CHARTFLAG} IMAGELABELS=${IMAGELABELS}"
sudo make versions_prepare ${CTX};
make versions_prepare ${CTX};
case ${{ matrix.component }} in
core) sudo make compile_core ${CTX} ;;
jobservice) sudo make compile_jobservice ${CTX};;
registryctl) sudo make compile_registryctl ${CTX};;
notary*) sudo make compile_notary_migrate_patch ${CTX} ;;
standalone_db_migrator) sudo make compile_standalone_db_migrator ${CTX} ;;
core) make compile_core ${CTX} ;;
jobservice) make compile_jobservice ${CTX};;
registryctl) make compile_registryctl ${CTX};;
notary*) make compile_notary_migrate_patch ${CTX} ;;
standalone_db_migrator) make compile_standalone_db_migrator ${CTX} ;;
esac;
case ${{ matrix.component }} in
exporter) sudo make build BUILDTARGET="_compile_and_build_exporter" ${CTX} ;;
registryctl) sudo make build BUILDTARGET="_build_registry _build_registryctl" ${CTX} ;;
*) sudo make build BUILDTARGET="_build_${{ matrix.component }}" ${CTX} ;;
exporter) make build BUILDTARGET="_compile_and_build_exporter" ${CTX} ;;
registryctl) make build BUILDTARGET="_build_registry _build_registryctl" ${CTX} ;;
*) make build BUILDTARGET="_build_${{ matrix.component }}" ${CTX} ;;
esac;
2 changes: 1 addition & 1 deletion harbor
Submodule harbor updated 2722 files
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2.7.0
v2.8.2

0 comments on commit 128537c

Please sign in to comment.