Kaniko Build / Push to Dockerhub #91
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Kaniko Build / Push to Dockerhub | |
on: | |
push: | |
branches: | |
- main | |
schedule: | |
- cron: '37 11 * * 6' | |
jobs: | |
build-netlify-cli-latest-node-version: | |
runs-on: ubuntu-latest | |
env: | |
NODE_VERSION: alpine | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Kaniko build | |
uses: aevea/action-kaniko@master | |
with: | |
image: tryvium/netlify-cli | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_PASSWORD }} | |
extra_args: --build-arg NODE_VERSION=${{ env.NODE_VERSION }} --build-arg NETLIFY_CLI_VERSION=latest | |
cache: true | |
cache_registry: tryvium/netlify-cli-cache | |
tag: latest | |
build-netlify-cli-node-specific-version: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [16, 18, 20] | |
distro: ["", "-alpine"] | |
env: | |
NODE_VERSION: "${{ matrix.node-version }}${{ matrix.distro }}" | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Kaniko build | |
uses: aevea/action-kaniko@master | |
with: | |
image: tryvium/netlify-cli | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_PASSWORD }} | |
extra_args: --build-arg NODE_VERSION="${{ env.NODE_VERSION }}" --build-arg NETLIFY_CLI_VERSION=latest | |
cache: true | |
cache_registry: tryvium/netlify-cli-cache | |
tag: node-${{ env.NODE_VERSION }} |