Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9a1724742a | ||
|
|
20023ca9a9 | ||
|
|
478d258a31 | ||
|
|
eb8b1456ab | ||
|
|
4c99b6a1af | ||
|
|
0becddf81f | ||
|
|
233c0ef977 | ||
|
|
11e3c866de | ||
|
|
ce43e1fa38 | ||
|
|
9c9722615f | ||
|
|
9ad983cc1c | ||
|
|
10821f94df | ||
|
|
550551c4a0 |
@@ -3,8 +3,8 @@ run-name: Build and Publish Service
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [release]
|
tags:
|
||||||
tags: [v*]
|
- 'v[0-9]+.[0-9]+.[0-9]+'
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
name: Test
|
name: Test
|
||||||
@@ -31,10 +31,22 @@ jobs:
|
|||||||
needs: [test]
|
needs: [test]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
-
|
||||||
|
name: Set Environment Variables
|
||||||
|
id: vars
|
||||||
|
env:
|
||||||
|
repository: ${{gitea.repository}}
|
||||||
|
ref_name: ${{gitea.ref_name}}
|
||||||
|
run: |
|
||||||
|
echo $repository
|
||||||
|
echo ::set-output name=OWNER::${repository#/*}
|
||||||
|
echo ::set-output name=PROJECT::${repository#*/}
|
||||||
|
echo $ref_name
|
||||||
|
echo ::set-output name=TAG::${ref_name#refs/*/}
|
||||||
-
|
-
|
||||||
name: Push Image
|
name: Push Image
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
push: true
|
push: true
|
||||||
tags: 192.168.1.2:5000/${{gitea.repository}}:${{gitea.ref_name}}
|
tags: 192.168.1.2:5000/${{gitea.repository}}:${{steps.vars.outputs.TAG}}
|
||||||
|
|||||||
Reference in New Issue
Block a user