docker and helm release #9
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release Docker images | |
on: | |
# push: | |
# tags: | |
# - '*' | |
pull_request: | |
branches: [ main ] | |
jobs: | |
# build and publish docker images | |
kaniko: | |
strategy: | |
matrix: | |
arch: [amd64, arm64] | |
service: [worker, proxy, agent] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: docker build and push | |
uses: aevea/[email protected] | |
with: | |
registry: harbor.clyso.com | |
username: "${{ secrets.DOCKER_USER }}" | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
image: chorus/${{ matrix.service }}-${{ matrix.arch }} | |
build_file: Dockerfile | |
tag: test2 | |
# tag: ${{ github.ref_name }} | |
strip_tag_prefix: v | |
tag_with_latest: false | |
extra_args: "--custom-platform=linux/${{ matrix.arch }} --build-arg GIT_TAG=${{ github.ref_name }} --build-arg GIT_COMMIT=${{ github.sha }} --build-arg SERVICE=${{ matrix.service }} --build-arg GOARCH=${{ matrix.arch }}" | |
# upload docker manifest to support multi-arch images | |
manifest: | |
needs: kaniko | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
service: [worker, proxy, agent] | |
steps: | |
- name: Push manifest | |
uses: pixelfederation/[email protected] #check for latest tag | |
with: | |
username: "${{ secrets.DOCKER_USER }}" | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
platforms: linux/amd64,linux/arm64 | |
template: harbor.clyso.com/chorus/${{ matrix.service }}-ARCH:test2 | |
target: harbor.clyso.com/chorus/${{ matrix.service }}:test2 | |
# template: harbor.clyso.com/chorus/${{ matrix.service }}-ARCH:${{ github.ref_name }} | |
# target: harbor.clyso.com/chorus/${{ matrix.service }}:${{ github.ref_name }} | |
# - name: Tag latest | |
# uses: pixelfederation/[email protected] #check for latest tag | |
# with: | |
# username: "${{ secrets.DOCKER_USER }}" | |
# password: ${{ secrets.DOCKER_PASSWORD }} | |
# platforms: linux/amd64,linux/arm64 | |
# template: harbor.clyso.com/chorus/${{ matrix.service }}-ARCH:${{ github.ref_name }} | |
# target: harbor.clyso.com/chorus/${{ matrix.service }}:latest | |