fix(ci): building in case of edge or stable tag (#585)

Signed-off-by: Dario Tranchitella <dario@tranchitella.eu>
This commit is contained in:
Dario Tranchitella
2024-09-20 11:10:18 +02:00
committed by GitHub
parent 293387e0d1
commit 11bda430c6

View File

@@ -21,8 +21,8 @@ jobs:
run: ./bin/ko login quay.io -u ${{ secrets.QUAY_IO_USERNAME }} -p ${{ secrets.QUAY_IO_TOKEN }}
- name: "ko: login to docker.io container registry"
run: ./bin/ko login docker.io -u ${{ secrets.DOCKER_IO_USERNAME }} -p ${{ secrets.DOCKER_IO_TOKEN }}
- name: "ko: build and push latest"
run: make VERSION=latest KO_LOCAL=false KO_PUSH=true build
- name: "ko: build and push tag"
run: make VERSION=${{ github.ref_name }} KO_LOCAL=false KO_PUSH=true build
if: startsWith(github.event.ref, 'refs/tags/v') || startsWith(github.event.ref, 'refs/tags/edge')
if: startsWith(github.event.ref, 'v') || startsWith(github.event.ref, 'edge')
- name: "ko: build and push latest"
run: make VERSION=latest KO_LOCAL=false KO_PUSH=true build