Skip to content

Commit e795a5f

Browse files
authored
ci: modify to push docker image to dockerhub (Finschia#145)
* ci: modify to push docker image to dockerhub Signed-off-by: zemyblue <[email protected]> * chore: add test code to push docker image Signed-off-by: zemyblue <[email protected]> * chore: add docker buildx Signed-off-by: zemyblue <[email protected]> * fix: yml format error Signed-off-by: zemyblue <[email protected]> * test: add test codes. Signed-off-by: zemyblue <[email protected]> * chore: remove test codes. Signed-off-by: zemyblue <[email protected]> * chore: update changelog Signed-off-by: zemyblue <[email protected]> * chore: change the name Signed-off-by: zemyblue <[email protected]> --------- Signed-off-by: zemyblue <[email protected]>
1 parent f661ed4 commit e795a5f

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

.github/workflows/docker.yml

+8-7
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,14 @@ on:
55
pull_request:
66
branches:
77
- main
8-
# push:
9-
# tags:
10-
# - "v[0-9]+.[0-9]+.[0-9]+" # Push events to matching v*, i.e. v1.0, v20.15.10
11-
# - "v[0-9]+.[0-9]+.[0-9]+-rc*" # Push events to matching v*, i.e. v1.0-rc1, v20.15.10-rc5
8+
push:
9+
tags:
10+
- "v[0-9]+.[0-9]+.[0-9]+" # Push events to matching v*, i.e. v1.0, v20.15.10
11+
- "v[0-9]+.[0-9]+.[0-9]+-*" # Push events to matching v*, i.e. v1.0-rc1, v20.15.10-alpha1
12+
1213
env:
13-
registry: docker-registry.linecorp.com
14-
repository: link-network/v2/lbm
14+
registry: docker.io
15+
repository: line/lbm
1516
jobs:
1617
build:
1718
runs-on: self-hosted
@@ -44,7 +45,7 @@ jobs:
4445
tags: |
4546
type=semver,pattern={{version}}
4647
- name: docker build
47-
uses: docker/build-push-action@v3
48+
uses: docker/build-push-action@v4
4849
with:
4950
push: ${{github.event_name != 'pull_request'}}
5051
build-args: ARCH=x86_64

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
5454
(api) [\#123](https://github.com/line/lbm/pull/123) remove legacy REST API routes
5555

5656
### Build, CI
57+
(ci) [\#145](https://github.com/line/lbm/pull/145) add github action to push docker image to docker.io
5758

5859

5960
<!-- Release links -->

0 commit comments

Comments
 (0)