feature/gitea-actions #1
@ -1,24 +1,28 @@
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches-ignore:
|
branches-ignore:
|
||||||
- main
|
- development
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: docker
|
runs-on: k3s
|
||||||
container:
|
container:
|
||||||
image: alpine:latest
|
image: alpine:3
|
||||||
steps:
|
steps:
|
||||||
- run: apk --no-cache add nodejs git
|
- run: apk --no-cache add nodejs git docker
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Kaniko build
|
- name: docker login
|
||||||
uses: aevea/action-kaniko@master
|
run: docker login -u $REGISTRY_USER -p $REGISTRY_PASSWORD gitea.sikorski.cloud
|
||||||
with:
|
env:
|
||||||
registry: gitea.sikorski.cloud
|
REGISTRY_USER: ${{ secrets.REGISTRY_USER }}
|
||||||
image: rogersik/docker-admin-helper
|
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }}
|
||||||
tag: development
|
- name: Pull Docker Image for caching
|
||||||
username: ${{ secrets.REGISTRY_USER }}
|
run: docker pull registry.sikorski.cloud/docker-admin-helper/ansible:development || exit 0
|
||||||
password: ${{ secrets.REGISTRY_PASSWORD }}
|
- name: Build docker image
|
||||||
cache: true
|
run: |
|
||||||
cache_registry: rogersik/docker-admin-helper
|
docker build . \
|
||||||
build_file: ./Dockerfile
|
--cache-from registry.sikorski.cloud/docker-admin-helper/ansible:development \
|
||||||
|
--file Dockerfile \
|
||||||
|
--tag registry.sikorski.cloud/docker-admin-helper/ansible:development
|
||||||
|
- name: Push docker image
|
||||||
|
run: docker push registry.sikorski.cloud/docker-admin-helper/ansible --all-tags
|
||||||
|
Loading…
Reference in New Issue
Block a user