Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Merge pull request #36 from nebius/dev #11

Merge pull request #36 from nebius/dev

Merge pull request #36 from nebius/dev #11

Workflow file for this run

name: Build All in one job
on:
push:
branches:
- main
permissions:
contents: read
jobs:
build:
permissions:
contents: write # for softprops/action-gh-release to create GitHub release
runs-on: self-hosted
steps:
- name: Harden Runner
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
with:
egress-policy: audit
- name: Checkout repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Run all
run: |
make release-terraform-ci
ls -la releases/
- name: Get Version
id: get_version
run: |
echo "VERSION=$(cat VERSION)" >> $GITHUB_ENV
echo "FILE_VERSION=$(cat VERSION | tr '.' '_' | tr '-' '_')" >> $GITHUB_ENV
- name: Create GitHub Release and Upload terraform tarball
uses: softprops/action-gh-release@c062e08bd532815e2082a85e87e3ef29c3e6d191 # v2.0.8
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: release-${{ env.VERSION }}
name: Release terraform tarball ${{ env.VERSION }}
draft: false
prerelease: false
files: |
releases/slurm_operator_tf_${{ env.FILE_VERSION }}.tar.gz
- name: Cleanup
run: rm -rf releases/slurm_operator_tf_${{ env.FILE_VERSION }}.tar.gz