Skip to content

Commit 0cb92ed

Browse files
author
Olivier Boudet
committed
Merge branch 'publish-image'
2 parents 57a5a1b + 6a1275a commit 0cb92ed

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Release Image
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
main:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Inject slug/short variables
14+
uses: rlespinasse/github-slug-action@v3.x
15+
- name: Setup Go
16+
uses: actions/setup-go@v2
17+
with:
18+
go-version: '1.15'
19+
#- name: Tests
20+
# run: |
21+
# go version
22+
# scripts/fetch-test-binaries.sh
23+
# TEST_ZONE_NAME=example.com. go test .
24+
- name: Set up Docker Buildx
25+
uses: docker/setup-buildx-action@v1
26+
- name: Log in to GitHub Docker Registry
27+
uses: docker/login-action@v1
28+
with:
29+
registry: ghcr.io
30+
username: ${{ github.actor }}
31+
password: ${{ secrets.GITHUB_TOKEN }}
32+
logout: true
33+
- name: Build and push
34+
id: docker_build
35+
uses: docker/build-push-action@v2
36+
with:
37+
push: true
38+
tags: ghcr.io/${{ env.GITHUB_REPOSITORY_OWNER_PART_SLUG }}/${{ env.GITHUB_REPOSITORY_NAME_PART_SLUG }}/cert-manager-alidns-webhook:${{ env.GITHUB_REF_SLUG }}

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ TEST_ZONE_NAME=example.com. go test . # replace example.com with a zone which be
1717

1818
## Deploy
1919

20+
Use our docker image:
21+
```
22+
docker.pkg.github.com/DEVmachine-fr/cert-manager-alidns-webhook/cert-manager-alidns-webhook:<version>
23+
```
24+
2025
Build and publish the docker image:
2126
```
2227
docker build . -t <your registry>/alidns-webhook:latest

0 commit comments

Comments
 (0)