Skip to content

Commit

Permalink
Fix release job (#94)
Browse files Browse the repository at this point in the history
* add jammy to deployment step

* delete the old deployment before redeploying

* move tag from `latest` to `VERSION` for scanning
  • Loading branch information
some-natalie authored Jul 18, 2022
1 parent 4e6f06e commit c6da661
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
uses: anchore/scan-action@v3
id: scan
with:
image: "ghcr.io/some-natalie/kubernoodles/${{ matrix.runner-image }}:latest"
image: "ghcr.io/some-natalie/kubernoodles/${{ matrix.runner-image }}:${{ env.VERSION }}"
fail-build: false
acs-report-enable: true

Expand All @@ -63,7 +63,7 @@ jobs:
- name: Generate SBOM for the Ubuntu-based runners
uses: anchore/sbom-action@v0
with:
image: ghcr.io/some-natalie/kubernoodles/${{ matrix.runner-image }}:latest
image: ghcr.io/some-natalie/kubernoodles/${{ matrix.runner-image }}:${{ env.VERSION }}

build-podman:
runs-on: ubuntu-latest # use the GitHub hosted runners
Expand Down Expand Up @@ -95,7 +95,7 @@ jobs:
uses: anchore/scan-action@v3
id: scan
with:
image: "ghcr.io/some-natalie/kubernoodles/podman:latest"
image: "ghcr.io/some-natalie/kubernoodles/podman:${{ env.VERSION }}"
fail-build: false
acs-report-enable: true

Expand All @@ -107,7 +107,7 @@ jobs:
- name: Generate SBOM for the Podman (Fedora 35) runner
uses: anchore/sbom-action@v0
with:
image: ghcr.io/some-natalie/kubernoodles/podman:latest
image: ghcr.io/some-natalie/kubernoodles/podman:${{ env.VERSION }}

- name: Push image
uses: redhat-actions/push-to-registry@v2
Expand All @@ -125,7 +125,8 @@ jobs:
needs: [build-podman, build-ubuntu]
strategy:
matrix:
runner-image: [podman, ubuntu-focal, rootless-ubuntu-focal]
runner-image:
[podman, ubuntu-focal, rootless-ubuntu-focal, ubuntu-jammy]

steps:
- name: Checkout
Expand All @@ -135,8 +136,10 @@ jobs:
run: |
echo ${{ secrets.DEPLOY_ACCOUNT }} | base64 -d > /tmp/config
- name: Update deployment
- name: Update deployments
run: |
kubectl delete -f deployments/${{ matrix.runner-image }}.yml
sleep 30
kubectl apply -f deployments/${{ matrix.runner-image }}.yml
env:
KUBECONFIG: /tmp/config
Expand Down

0 comments on commit c6da661

Please sign in to comment.