-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Docker image | ||
|
||
on: | ||
push: | ||
tags: | ||
- "v*" # triggers only if push new tag version, like `0.8.4` or else | ||
|
||
jobs: | ||
|
||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: ^1.21 | ||
|
||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v2 | ||
|
||
- name: Build image | ||
run: | | ||
make golib | ||
docker build --build-arg srv=DataBookkeeping --build-arg tag=${GITHUB_REF##*/} -t ghcr.io/chesscomputing/databookkeeping ../golib/k8s | ||
# - name: Login to docker github registry | ||
# uses: docker/[email protected] | ||
# with: | ||
# registry: docker.pkg.github.com | ||
# username: ${{ github.actor }} | ||
# password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
# - name: Publish image | ||
# uses: docker/build-push-action@v1 | ||
# with: | ||
# username: ${{ github.actor }} | ||
# password: ${{ secrets.GITHUB_TOKEN }} | ||
# registry: docker.pkg.github.com | ||
# repository: vkuznet/dbs2go/dbs2go | ||
# tag_with_ref: true |