|
@@ -15,10 +15,10 @@ env:
|
|
|
KUBEBUILDER_VERSION: '2.3.1'
|
|
KUBEBUILDER_VERSION: '2.3.1'
|
|
|
DOCKER_BUILDX_VERSION: 'v0.4.2'
|
|
DOCKER_BUILDX_VERSION: 'v0.4.2'
|
|
|
|
|
|
|
|
- # Common users. We can't run a step 'if secrets.GHCR_USER != ""' but we can run
|
|
|
|
|
- # a step 'if env.GHCR_USER' != ""', so we copy these to succinctly test whether
|
|
|
|
|
|
|
+ # Common users. We can't run a step 'if secrets.GHCR_USERNAME != ""' but we can run
|
|
|
|
|
+ # a step 'if env.GHCR_USERNAME' != ""', so we copy these to succinctly test whether
|
|
|
# credentials have been provided before trying to run steps that need them.
|
|
# credentials have been provided before trying to run steps that need them.
|
|
|
- GHCR_USER: ${{ secrets.GHCR_USERNAME }}
|
|
|
|
|
|
|
+ GHCR_USERNAME: ${{ secrets.GHCR_USERNAME }}
|
|
|
|
|
|
|
|
jobs:
|
|
jobs:
|
|
|
detect-noop:
|
|
detect-noop:
|
|
@@ -220,6 +220,10 @@ jobs:
|
|
|
restore-keys: ${{ runner.os }}-pkg-
|
|
restore-keys: ${{ runner.os }}-pkg-
|
|
|
|
|
|
|
|
- name: Build Artifacts
|
|
- name: Build Artifacts
|
|
|
|
|
+ env:
|
|
|
|
|
+ # We're using docker buildx, which doesn't actually load the images it
|
|
|
|
|
+ # builds by default. Specifying --load does so.
|
|
|
|
|
+ BUILD_ARGS: "--load"
|
|
|
run: make docker.build
|
|
run: make docker.build
|
|
|
|
|
|
|
|
- name: Login to Docker
|
|
- name: Login to Docker
|
|
@@ -231,8 +235,8 @@ jobs:
|
|
|
password: ${{ secrets.GHCR_TOKEN }}
|
|
password: ${{ secrets.GHCR_TOKEN }}
|
|
|
|
|
|
|
|
- name: Publish Artifacts
|
|
- name: Publish Artifacts
|
|
|
- run: make docker.push
|
|
|
|
|
if: env.GHCR_USERNAME != ''
|
|
if: env.GHCR_USERNAME != ''
|
|
|
|
|
+ run: make docker.push
|
|
|
|
|
|
|
|
- name: Promote Artifacts to main release channel
|
|
- name: Promote Artifacts to main release channel
|
|
|
if: github.ref == 'refs/heads/main' && env.GHCR_USERNAME != ''
|
|
if: github.ref == 'refs/heads/main' && env.GHCR_USERNAME != ''
|