-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (36 loc) · 1.05 KB
/
release-docker.yml
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
35
36
37
38
name: Release Image
on:
push:
tags:
- '*'
jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Inject slug/short variables
uses: rlespinasse/github-slug-action@v4.x
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: '1.19'
#- name: Tests
# run: |
# go version
# scripts/fetch-test-binaries.sh
# TEST_ZONE_NAME=example.com. go test .
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Log in to GitHub Docker Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
logout: true
- name: Build and push
id: docker_build
uses: docker/build-push-action@v3
with:
push: true
tags: ghcr.io/${{ env.GITHUB_REPOSITORY_OWNER_PART_SLUG }}/${{ env.GITHUB_REPOSITORY_NAME_PART_SLUG }}:${{ env.GITHUB_REF_SLUG }}