mirror of
https://github.com/aevea/action-kaniko.git
synced 2025-01-30 22:09:37 +01:00
28 lines
700 B
YAML
28 lines
700 B
YAML
|
name: Commit
|
||
|
on: push
|
||
|
|
||
|
jobs:
|
||
|
docker:
|
||
|
runs-on: ubuntu-latest
|
||
|
name: Build docker image
|
||
|
steps:
|
||
|
- uses: actions/checkout@master
|
||
|
|
||
|
- name: GitHub Package Registry
|
||
|
uses: outillage/kaniko-action@master
|
||
|
with:
|
||
|
registry: docker.pkg.github.com
|
||
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||
|
image: kaniko
|
||
|
cache: true
|
||
|
cache_registry: cache
|
||
|
|
||
|
- name: Dockerhub
|
||
|
uses: outillage/kaniko-action@master
|
||
|
with:
|
||
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||
|
password: ${{ secrets.DOCKERHUB_PASSWORD }}
|
||
|
image: outillage/kaniko
|
||
|
cache: true
|
||
|
cache_registry: outillage/cache
|