1
0
Fork 0
mirror of https://github.com/aevea/action-kaniko.git synced 2025-01-30 22:09:37 +01:00

feat(ci): Add kaniko build GitHub action

This commit is contained in:
Alex Viscreanu 2020-02-16 23:16:55 +01:00
parent bd12547855
commit 6d863aedec
No known key found for this signature in database
GPG key ID: 60A6BD7F046C850B
2 changed files with 45 additions and 0 deletions

27
.github/workflows/push.yml vendored Normal file
View file

@ -0,0 +1,27 @@
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

View file

@ -16,3 +16,21 @@ jobs:
uses: docker://commitsar/release-notary
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- 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