add docker build to ci

This commit is contained in:
lipovmi 2022-04-22 08:37:22 +03:00 committed by GitHub
parent ddc6d8c4ee
commit ca75fc8cb1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

20
.github/workflows/docker-image.yml vendored Normal file
View file

@ -0,0 +1,20 @@
name: Docker Image CI
on:
push:
tags:
- 'v*.*.*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build the Docker image
run: docker build . --file Dockerfile --tag ghcr.io/g-core/cert-manager-webhook-gcore:latest
- name: Push the Docker image
run: docker push ghcr.io/g-core/cert-manager-webhook-gcore:latest