Skip to content

Commit

Permalink
Merge pull request #940 from ktock/containerizeci
Browse files Browse the repository at this point in the history
Build and push stargz-snapshotter image usable as a kind node
  • Loading branch information
ktock authored Oct 14, 2022
2 parents eb388a9 + 45c3078 commit 016bb09
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/kind-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Kind image
on:
push:
tags:
- 'v*'

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

jobs:
kind-image:
runs-on: ubuntu-22.04
name: Kind image
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=semver,pattern={{version}}-kind
- name: Login to GHCR
if: github.event_name != 'pull_request'
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push
uses: docker/[email protected]
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit 016bb09

Please sign in to comment.