ci: kaniko!
All checks were successful
Build and push Docker image / build-and-publish (push) Successful in 6m23s

This commit is contained in:
Hamcha 2024-03-30 19:24:18 +01:00
parent 094e738ef2
commit 61d699c236

View file

@ -7,24 +7,16 @@ on:
jobs:
build-and-publish:
runs-on: ubuntu-with-docker
runs-on: docker
steps:
- uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- uses: actions/checkout@v4
- name: Build
uses: https://codeberg.org/umglurf/kaniko-action@main
with:
driver: docker
driver-opts: |
network=web
- name: Auth with uchu registry
uses: docker/login-action@v2
with:
registry: ${{ secrets.DOCKER_REGISTRY }}
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
cache: true
cache_repo: ${{ secrets.DOCKER_REGISTRY }}/${{ github.repository }}/cache
credentials: |
${{ secrets.DOCKER_REGISTRY }}=${{ secrets.DOCKER_USERNAME }}:${{ secrets.DOCKER_PASSWORD }}
destinations: |
${{ secrets.DOCKER_REGISTRY }}/${{ github.repository }}:latest
push: 'true'