updated github workflows
added github action to build a docker image when publishing a new release
This commit is contained in:
parent
76a4ba622e
commit
4a4a5826a5
31
.github/workflows/docker-image.yaml
vendored
Normal file
31
.github/workflows/docker-image.yaml
vendored
Normal file
@ -0,0 +1,31 @@
|
||||
name: Build and publish new docker image
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- "v*"
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Login to docker hub
|
||||
if: success()
|
||||
uses: actions-hub/docker/login@master
|
||||
env:
|
||||
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
|
||||
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|
||||
DOCKER_REGISTRY_URL: ghcr.io
|
||||
|
||||
- name: Build image
|
||||
if: success()
|
||||
run: docker build -t ghcr.io/${GITHUB_REPOSITORY}/cli:${IMAGE_TAG} .
|
||||
|
||||
- name: Push to docker registry
|
||||
if: success()
|
||||
uses: actions-hub/docker/cli@master
|
||||
with:
|
||||
args: push ghcr.io/${GITHUB_REPOSITORY}/cli:${IMAGE_TAG}
|
||||
2
.github/workflows/tests.yaml
vendored
2
.github/workflows/tests.yaml
vendored
@ -6,7 +6,7 @@ jobs:
|
||||
kustomize:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
- run: |
|
||||
echo 'configMapGenerator:
|
||||
- name: example
|
||||
|
||||
2
.github/workflows/upgrader.yaml
vendored
2
.github/workflows/upgrader.yaml
vendored
@ -88,4 +88,4 @@ jobs:
|
||||
tag_name: ${{ steps.modify.outputs.tag }}
|
||||
release_name: ${{ steps.modify.outputs.tag }}
|
||||
draft: false
|
||||
prerelease: false
|
||||
prerelease: false
|
||||
Loading…
Reference in New Issue
Block a user