mirror of
https://github.com/kubeshark/kubeshark.git
synced 2026-07-07 07:30:12 +00:00
34 lines
883 B
YAML
34 lines
883 B
YAML
name: ci
|
|
on:
|
|
push:
|
|
branches:
|
|
- 'feature/try_guthub_action'
|
|
jobs:
|
|
docker:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
- name: Docker meta
|
|
id: meta
|
|
uses: crazy-max/ghaction-docker-meta@v2
|
|
with:
|
|
images: gcr.io/up9-docker-hub/mizu/${GITHUB_REF##*/}
|
|
tags: |
|
|
type=sha
|
|
type=raw,${{ github.sha }}
|
|
type=raw,latest
|
|
- name: Login to DockerHub
|
|
uses: docker/login-action@v1
|
|
with:
|
|
registry: gcr.io
|
|
username: _json_key
|
|
password: ${{ secrets.GCR_JSON_KEY }}
|
|
- name: Build and push
|
|
uses: docker/build-push-action@v2
|
|
with:
|
|
context: .
|
|
push: true
|
|
tags: ${{ steps.meta.outputs.tags }}
|
|
labels: ${{ steps.meta.outputs.labels }}
|