-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (33 loc) · 1.16 KB
/
release.yml
File metadata and controls
41 lines (33 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Release
on:
release:
types: [published]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: 'Get the version'
id: get_version
run: echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> "$GITHUB_OUTPUT"
- name: 'Build and push image'
uses: azure/docker-login@v1
with:
login-server: ${{ vars.EXTENSION_REGISTRY_LOGIN_SERVER }}
username: ${{ vars.EXTENSION_REGISTRY_USERNAME }}
password: ${{ secrets.EXTENSION_REGISTRY_PASSWORD }}
- run: |
docker build -f prod.Dockerfile -t ${{ vars.EXTENSION_REGISTRY_LOGIN_SERVER }}/mpt-extensions-finops:${{ steps.get_version.outputs.VERSION }} .
docker push ${{ vars.EXTENSION_REGISTRY_LOGIN_SERVER }}/mpt-extensions-finops:${{ steps.get_version.outputs.VERSION }}
dtrack:
uses: softwareone-platform/ops-template/.github/workflows/dependency-track-python-poetry.yml@v2
with:
projectName: 'swo-extension-finops'
secrets:
DEPENDENCYTRACK_APIKEY: ${{ secrets.DEPENDENCYTRACK_APIKEY }}