Skip to content

installing kaniko

installing kaniko #2

Workflow file for this run

name: Build and Push Docker Images
on:
push:
branches:
- githubactions-deploy
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set up JDK 8
uses: actions/setup-java@v2
with:
java-version: '8'
distribution: 'adopt'
- name: Set up Kaniko
uses: GoogleContainerTools/kaniko-action@v0.1
with:
image: gcr.io/kaniko-project/executor:debug
args: >
--context "${{ github.workspace }}"
--dockerfile "${{ github.workspace }}/Dockerfile"
--destination "${{ env.REGISTRY_IMAGE }}:${{ matrix.ARCH }}"
# - name: Cache Maven Packages
# uses: actions/cache@v2
# with:
# path: ~/.m2
# key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
# restore-keys: ${{ runner.os }}-m2
# - name: Maven Build
# run: mvn -B package --file pom.xml
# - name: Build and Push Docker Image
# uses: docker/build-push-action@v2
# with:
# context: .
# file: build/maven/Dockerfile
# push: true
# tags: user/repo:tag