Skip to content

Commit

Permalink
feat(ci): Add kaniko build GitHub action
Browse files Browse the repository at this point in the history
  • Loading branch information
aexvir committed Feb 16, 2020
1 parent bd12547 commit 6d863ae
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -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
18 changes: 18 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 6d863ae

Please sign in to comment.