File tree Expand file tree Collapse file tree 2 files changed +43
-0
lines changed Expand file tree Collapse file tree 2 files changed +43
-0
lines changed Original file line number Diff line number Diff line change 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 }}
Original file line number Diff line number Diff 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+
2025Build and publish the docker image:
2126```
2227docker build . -t <your registry>/alidns-webhook:latest
You can’t perform that action at this time.
0 commit comments