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