Skip to content

BLACKDUCK added oss-disclosure file #25

BLACKDUCK added oss-disclosure file

BLACKDUCK added oss-disclosure file #25

Workflow file for this run

name: Update release containers
on:
push:
branches:
- 'release/**'
pull_request:
branches:
- 'release/**'
jobs:
build:
runs-on: [ubuntu-latest]
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.7
uses: actions/setup-python@v3
with:
python-version: 3.7
- name: black
uses: psf/black@stable
with:
version: "22.6.0"
options: "--check --extend-exclude tests/escript/scripts/"
- name: Setup env
run: |
python -m pip install --upgrade pip
pip install virtualenv
- name: Build docker image
run: |
make release-docker
- name: Read VERSION file
id: getversion
run: echo "::set-output name=version::$(cat CalmVersion)"
- name: Execute container
uses: addnab/docker-run-action@v3
with:
image: ntnx/calm-dsl:v${{ steps.getversion.outputs.version }}
run: calm
- name: Publish docker image
if: ${{ github.event_name == 'push' && github.repository == 'nutanix/calm-dsl'}}
run: |
docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
docker push ntnx/calm-dsl:v${{ steps.getversion.outputs.version }}