Skip to content

F/2098/generalize (#2) #5

F/2098/generalize (#2)

F/2098/generalize (#2) #5

Workflow file for this run

name: Nullstone
on:
push:
tags:
- 'v*'
jobs:
publish:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
# Checkout the repository to the GitHub Actions runner
- name: Checkout
uses: actions/checkout@v2
- name: Find version
id: version
run: echo ::set-output name=tag::${GITHUB_REF#refs/tags/v}
# Package files into tgz
- name: Package
run: tar -cvzf module.tgz *.tf
# Publish to nullstone
- name: Publish
env:
NULLSTONE_ORG: nullstone
NULLSTONE_MODULE: autogen-gcp-subdomain
RELEASE_VERSION: ${{ steps.version.outputs.tag }}
run: |-
curl -XPOST -F "file=@module.tgz" -H "X-Nullstone-Key: ${{ secrets.NULLSTONE_API_KEY }}" \
https://api.nullstone.io/orgs/${NULLSTONE_ORG}/modules/${NULLSTONE_MODULE}/versions?version=${RELEASE_VERSION}