ci: kaniko!
All checks were successful
Build and push Docker image / build-and-publish (push) Successful in 6m23s
All checks were successful
Build and push Docker image / build-and-publish (push) Successful in 6m23s
This commit is contained in:
parent
094e738ef2
commit
61d699c236
1 changed files with 11 additions and 19 deletions
|
@ -7,24 +7,16 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-publish:
|
build-and-publish:
|
||||||
runs-on: ubuntu-with-docker
|
runs-on: docker
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- name: Set up Docker Buildx
|
- name: Build
|
||||||
uses: docker/setup-buildx-action@v2
|
uses: https://codeberg.org/umglurf/kaniko-action@main
|
||||||
with:
|
with:
|
||||||
driver: docker
|
cache: true
|
||||||
driver-opts: |
|
cache_repo: ${{ secrets.DOCKER_REGISTRY }}/${{ github.repository }}/cache
|
||||||
network=web
|
credentials: |
|
||||||
- name: Auth with uchu registry
|
${{ secrets.DOCKER_REGISTRY }}=${{ secrets.DOCKER_USERNAME }}:${{ secrets.DOCKER_PASSWORD }}
|
||||||
uses: docker/login-action@v2
|
destinations: |
|
||||||
with:
|
${{ secrets.DOCKER_REGISTRY }}/${{ github.repository }}:latest
|
||||||
registry: ${{ secrets.DOCKER_REGISTRY }}
|
push: 'true'
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
||||||
- name: Build and push
|
|
||||||
uses: docker/build-push-action@v5
|
|
||||||
with:
|
|
||||||
context: .
|
|
||||||
push: true
|
|
||||||
tags: ${{ secrets.DOCKER_REGISTRY }}/Hamcha/staxman:latest
|
|
Reference in a new issue