publish step
This commit is contained in:
parent
6c4c3ab629
commit
becffc8cbd
2 changed files with 24 additions and 1 deletions
23
.forgejo/workflows/kaniko.yaml
Normal file
23
.forgejo/workflows/kaniko.yaml
Normal file
|
|
@ -0,0 +1,23 @@
|
||||||
|
name: kaniko
|
||||||
|
|
||||||
|
on: push
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
runs-on: ubuntu-rolling
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: docker/metadata-action@v4
|
||||||
|
id: metadata
|
||||||
|
with:
|
||||||
|
images: ${{ steps.ecr.outputs.registry }}/${{ github.repository }}
|
||||||
|
- uses: int128/kaniko-action@v1
|
||||||
|
id: build
|
||||||
|
with:
|
||||||
|
push: true
|
||||||
|
tags: ${{ steps.metadata.outputs.tags }}
|
||||||
|
labels: ${{ steps.metadata.outputs.labels }}
|
||||||
|
cache: true
|
||||||
|
cache-repository: ${{ steps.ecr.outputs.registry }}/${{ github.repository }}/cache
|
||||||
|
- run: kustomize edit set image myapp=${{ steps.ecr.outputs.registry }}/${{ github.repository }}@${{ steps.build.outputs.digest }}
|
||||||
|
- run: kustomize build | kubectl apply -f -
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
FROM ubuntu
|
FROM ubuntu
|
||||||
|
|
||||||
RUN apt-get -y update && \
|
RUN apt-get -y update && \
|
||||||
apt-get install -y curl jq bash git zsh
|
apt-get install -y curl jq bash git zsh docker
|
||||||
CMD [ "zsh" ]
|
CMD [ "zsh" ]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue