Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
tejal29 committed Feb 17, 2021
1 parent b3223cc commit 4fb6a56
Showing 1 changed file with 20 additions and 5 deletions.
25 changes: 20 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,16 @@ jobs:
env:
GITHUB_SHA: ${{ github.sha }}
GITHUB_REF: ${{ github.ref }}
TAG: ${{ github.event.release.tag_name }}
PLATFORMS: "linux/amd64,linux/arm64,linux/ppc64le"
runs-on: ubuntu-latest
steps:
- name: Clone source code
uses: actions/checkout@v2

- name: Get the tags
id: vars
run: echo ::set-output name=tag::${GITHUB_REF/refs\/tags\//}

- name: Set up QEMU
uses: docker/setup-qemu-action@v1
with:
Expand Down Expand Up @@ -57,7 +60,8 @@ jobs:
push: true
tags: |
gcr.io/kaniko-project/executor:${{ env.GITHUB_SHA }}-slim
gcr.io/kaniko-project/executor:${{ env.TAG }}-slim
gcr.io/kaniko-project/executor:${{ steps.vars.outputs.tag }}-slim
gcr.io/kaniko-project/executor:slim
- uses: docker/build-push-action@v2
with:
Expand All @@ -67,7 +71,8 @@ jobs:
push: true
tags: |
gcr.io/kaniko-project/executor:${{ env.GITHUB_SHA }}
gcr.io/kaniko-project/executor:${{ env.TAG }}
gcr.io/kaniko-project/executor:${{ steps.vars.outputs.tag }}
gcr.io/kaniko-project/executor:latest
build-debug:
env:
Expand All @@ -79,6 +84,10 @@ jobs:
- name: Clone source code
uses: actions/checkout@v2

- name: Get the tags
id: vars
run: echo ::set-output name=tag::${GITHUB_REF/refs\/tags\//}

- name: Set up QEMU
uses: docker/setup-qemu-action@v1
with:
Expand Down Expand Up @@ -119,7 +128,8 @@ jobs:
push: true
tags: |
gcr.io/kaniko-project/executor:${{ env.GITHUB_SHA }}-debug
gcr.io/kaniko-project/executor:${{ env.TAG }}-debug
gcr.io/kaniko-project/executor:${{ steps.vars.outputs.tag }}-debug
gcr.io/kaniko-project/executor:debug
build-warmer:
env:
Expand All @@ -131,6 +141,10 @@ jobs:
- name: Clone source code
uses: actions/checkout@v2

- name: Get the tags
id: vars
run: echo ::set-output name=tag::${GITHUB_REF/refs\/tags\//}

- name: Set up QEMU
uses: docker/setup-qemu-action@v1
with:
Expand Down Expand Up @@ -170,4 +184,5 @@ jobs:
push: true
tags: |
gcr.io/kaniko-project/warmer:${{ env.GITHUB_SHA }}
gcr.io/kaniko-project/warmer:${{ env.TAG }}
gcr.io/kaniko-project/warmer:${{ steps.vars.outputs.tag }}
gcr.io/kaniko-project/warmer:latest

0 comments on commit 4fb6a56

Please sign in to comment.