Skip to content

Commit e7e55b4

Browse files
authored
Create build_and_push_image.yml
1 parent bad9772 commit e7e55b4

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Build and push image
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
branches: [ "master" ]
8+
9+
env:
10+
IMAGE_NAME: relistenapi # <‑‑ repo/image name in the registry
11+
REGISTRY: 100.97.22.118:32000
12+
TAG: latest
13+
14+
jobs:
15+
16+
build:
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- uses: actions/checkout@v4
21+
22+
- name: Tailscale
23+
uses: tailscale/github-action@v3
24+
with:
25+
oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }}
26+
oauth-secret: ${{ secrets.TS_OAUTH_SECRET }}
27+
use-cache: 'true'
28+
tags: tag:ci
29+
version: latest
30+
31+
- name: Build and push image
32+
uses: docker/build-push-action@v5
33+
with:
34+
context: .
35+
platforms: linux/amd64 # x86_64
36+
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.TAG }}
37+
push: true

0 commit comments

Comments
 (0)