Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
11e3c866de | ||
|
|
ce43e1fa38 | ||
|
|
9c9722615f | ||
|
|
9ad983cc1c | ||
|
|
10821f94df | ||
|
|
550551c4a0 | ||
|
|
5709c7152a | ||
|
|
a8b27d8f21 | ||
|
|
2cd449e130 | ||
|
|
91b22a781c | ||
|
|
6f7201054b | ||
|
|
697973a454 |
@@ -1,7 +1,10 @@
|
|||||||
name: pipeline
|
name: pipeline
|
||||||
run-name: ${{ gitea.actor }} is running script
|
run-name: ${{ gitea.actor }} is running script
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
on: [push]
|
on:
|
||||||
|
push:
|
||||||
|
branches-ignore:
|
||||||
|
- "release"
|
||||||
image: python:3.10
|
image: python:3.10
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
@@ -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,19 @@ jobs:
|
|||||||
needs: [test]
|
needs: [test]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
-
|
||||||
|
name: Set Environment Variables
|
||||||
|
run: |
|
||||||
|
echo "$GITEA_REF"
|
||||||
|
echo "TAG=${GITEA_REF#refs/*/}" >> $gitea
|
||||||
|
-
|
||||||
|
name: Show Environment Variables
|
||||||
|
run: |
|
||||||
|
echo "$gitea.TAG"
|
||||||
-
|
-
|
||||||
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}}:v1.1
|
tags: 192.168.1.2:5000/${{gitea.repository}}:${{steps.get_version.outputs.VERSION}}
|
||||||
Reference in New Issue
Block a user