Compare commits

...
4 Commits
Author SHA1 Message Date
brb 9ad983cc1c added code to extract version number
Docker / Test (push) Successful in 38s
Docker / Publish (push) Failing after 5s
2023-07-12 10:27:41 +02:00
brb 10821f94df added code to extract version number
Docker / Test (push) Successful in 40s
Docker / Publish (push) Failing after 4s
2023-07-12 10:24:43 +02:00
brb 550551c4a0 updated to only run when tag is provided
Docker / Test (push) Successful in 40s
Docker / Publish (push) Failing after 6s
2023-07-12 10:08:13 +02:00
brb 5709c7152a updated to only run when tag is provided to release branch
pipeline / Test (push) Successful in 52s
Docker / Test (push) Successful in 38s
Docker / Publish (push) Failing after 6s
2023-07-11 18:41:05 +02:00
+7 -2
View File
@@ -3,7 +3,8 @@ run-name: Build and Publish Service
runs-on: ubuntu-latest runs-on: ubuntu-latest
on: on:
push: push:
branches: [release/v*] tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
jobs: jobs:
test: test:
name: Test name: Test
@@ -30,10 +31,14 @@ jobs:
needs: [test] needs: [test]
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
-
name: Get Version
id: get_version
run: echo ::set-output name=VERSION::${gitea.ref_name/refs\/tags\//}
- -
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.get_version.outputs.VERSION}}