-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (27 loc) · 833 Bytes
/
main.yml
File metadata and controls
34 lines (27 loc) · 833 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: "main"
on:
push:
branches:
- master
jobs:
build:
name: "Build docker image"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '1.17'
- name: Build
run: make build
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Tag docker image
run: docker tag cert-manager-webhook-vkcloud:latest ghcr.io/tarantool/cert-manager-webhook-vkcloud:latest
- name: Publish docker image to Github Container Registry
run: docker push ghcr.io/tarantool/cert-manager-webhook-vkcloud:latest