2023-07-23 19:14:51 +02:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches-ignore:
|
|
|
|
- main
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2023-07-23 19:22:55 +02:00
|
|
|
runs-on: k3s
|
2023-07-23 19:29:30 +02:00
|
|
|
container:
|
2023-07-23 19:33:00 +02:00
|
|
|
image: alpine:latest
|
2023-07-23 19:14:51 +02:00
|
|
|
steps:
|
2023-07-23 19:30:29 +02:00
|
|
|
- run: apk --no-cache add nodejs
|
2023-07-23 19:33:00 +02:00
|
|
|
- uses: actions/checkout@v3
|
2023-07-23 19:20:44 +02:00
|
|
|
- name: docker login
|
2023-07-23 19:28:40 +02:00
|
|
|
uses: docker/login-action@v2
|
|
|
|
with:
|
|
|
|
registry: "gitea.sikorski.cloud"
|
|
|
|
username: ${{ secrets.REGISTRY_USER }}
|
|
|
|
password: ${{ secrets.REGISTRY_PASSWORD }}
|
2023-07-23 19:33:00 +02:00
|
|
|
- name: Kaniko build
|
|
|
|
uses: aevea/action-kaniko@master
|
2023-07-23 19:28:40 +02:00
|
|
|
with:
|
2023-07-23 19:33:00 +02:00
|
|
|
registry: gitea.sikorski.cloud
|
|
|
|
image: rogersik/docker-admin-helper
|
|
|
|
tag: development
|
|
|
|
username: ${{ secrets.REGISTRY_USER }}
|
|
|
|
password: ${{ secrets.REGISTRY_PASSWORD }}
|
|
|
|
cache: true
|
|
|
|
cache_registry: rogersik/docker-admin-helper
|