From 6d863aedece584766f42d2ac0573ff0a4b7293c1 Mon Sep 17 00:00:00 2001 From: Alex Viscreanu Date: Sun, 16 Feb 2020 23:16:55 +0100 Subject: [PATCH] feat(ci): Add kaniko build GitHub action --- .github/workflows/push.yml | 27 +++++++++++++++++++++++++++ .github/workflows/release.yml | 18 ++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 .github/workflows/push.yml diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml new file mode 100644 index 0000000..3ab1573 --- /dev/null +++ b/.github/workflows/push.yml @@ -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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1235def..73bf734 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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