Skip to content

Release

Release #1

Workflow file for this run

name: Release
on:
release:
types: [published]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: "Checkout"
uses: actions/checkout@v6
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@v2
with:
login-server: ${{ secrets.REGISTRY_LOGIN_SERVER }}
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- run: |
docker build --target prod -t ${{ secrets.REGISTRY_LOGIN_SERVER }}/mpt-cli-techsupport-plugin:${{ steps.get_version.outputs.VERSION }} .
docker push ${{ secrets.REGISTRY_LOGIN_SERVER }}/mpt-cli-techsupport-plugin:${{ steps.get_version.outputs.VERSION }}
dtrack:
uses: softwareone-platform/ops-template/.github/workflows/dependency-track-python-uv.yml@v2
with:
projectName: "mpt-cli-techsupport-plugin"
secrets:
DEPENDENCYTRACK_APIKEY: ${{ secrets.DEPENDENCYTRACK_APIKEY }}