2020-10-09 19:22:05 -07:00
|
|
|
name: image
|
2020-10-09 19:16:28 -07:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2020-11-03 13:56:57 -08:00
|
|
|
- 'main'
|
2020-10-09 19:16:28 -07:00
|
|
|
jobs:
|
2021-02-23 04:18:11 +05:30
|
|
|
push-init-kyverno:
|
2020-10-09 19:16:28 -07:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2020-10-09 19:25:32 -07:00
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Unshallow
|
|
|
|
run: git fetch --prune --unshallow
|
|
|
|
|
|
|
|
- name: Set up Go
|
|
|
|
uses: actions/setup-go@v2
|
|
|
|
with:
|
|
|
|
go-version: 1.14
|
2020-10-09 19:16:28 -07:00
|
|
|
|
2020-11-24 12:00:33 -08:00
|
|
|
- name: login to GitHub Container Registry
|
2020-11-24 12:24:14 -08:00
|
|
|
run: echo ${{ secrets.CR_PAT }} | docker login ghcr.io -u ${{ github.repository_owner }} --password-stdin
|
2020-11-24 12:00:33 -08:00
|
|
|
|
2021-02-19 07:39:01 +05:30
|
|
|
- name: Set up Docker Buildx
|
|
|
|
uses: docker/setup-buildx-action@v1
|
|
|
|
id: buildx
|
|
|
|
with:
|
|
|
|
install: true
|
|
|
|
|
2020-10-09 19:16:28 -07:00
|
|
|
- name: docker images publish
|
|
|
|
run: |
|
2021-02-23 04:18:11 +05:30
|
|
|
make docker-publish-initContainer
|
|
|
|
|
|
|
|
push-kyverno:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Unshallow
|
|
|
|
run: git fetch --prune --unshallow
|
|
|
|
|
|
|
|
- name: Set up Go
|
|
|
|
uses: actions/setup-go@v2
|
|
|
|
with:
|
|
|
|
go-version: 1.14
|
|
|
|
|
|
|
|
- name: login to GitHub Container Registry
|
|
|
|
run: echo ${{ secrets.CR_PAT }} | docker login ghcr.io -u ${{ github.repository_owner }} --password-stdin
|
|
|
|
|
|
|
|
- name: Set up Docker Buildx
|
|
|
|
uses: docker/setup-buildx-action@v1
|
|
|
|
id: buildx
|
|
|
|
with:
|
|
|
|
install: true
|
|
|
|
|
|
|
|
- name: docker images publish
|
|
|
|
run: |
|
|
|
|
make docker-publish-kyverno
|
|
|
|
|
|
|
|
push-kyverno-cli:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Unshallow
|
|
|
|
run: git fetch --prune --unshallow
|
|
|
|
|
|
|
|
- name: Set up Go
|
|
|
|
uses: actions/setup-go@v2
|
|
|
|
with:
|
|
|
|
go-version: 1.14
|
|
|
|
|
|
|
|
- name: login to GitHub Container Registry
|
|
|
|
run: echo ${{ secrets.CR_PAT }} | docker login ghcr.io -u ${{ github.repository_owner }} --password-stdin
|
|
|
|
|
|
|
|
- name: Set up Docker Buildx
|
|
|
|
uses: docker/setup-buildx-action@v1
|
|
|
|
id: buildx
|
|
|
|
with:
|
|
|
|
install: true
|
|
|
|
|
|
|
|
- name: docker images publish
|
|
|
|
run: |
|
|
|
|
make docker-publish-cli
|