File tree Expand file tree Collapse file tree 4 files changed +21
-11
lines changed
Expand file tree Collapse file tree 4 files changed +21
-11
lines changed Original file line number Diff line number Diff line change @@ -3,18 +3,18 @@ FROM alpine:latest
33
44ARG TARGETARCH=amd64
55ARG TARGETOS=linux
6- ARG POLYTOMIC_IMPORTER_VERSION=0.3.26
6+ ARG POLYTOMIC_IMPORTER_VERSION=1.0.0-beta3
77
88RUN apk add --no-cache \
9- bash \
10- ca-certificates \
11- curl \
9+ bash \
10+ ca-certificates \
11+ curl \
1212 && curl -sLo polytomic-importer.zip \
1313 https://github.com/polytomic/terraform-provider-polytomic/releases/download/v${POLYTOMIC_IMPORTER_VERSION}/polytomic_importer_${POLYTOMIC_IMPORTER_VERSION}_${TARGETOS}_${TARGETARCH}.zip \
1414 && unzip -p \
1515 polytomic-importer.zip \
1616 polytomic_importer_v${POLYTOMIC_IMPORTER_VERSION} > /polytomic-importer \
17- && chmod +x /polytomic-importer
17+ && chmod +x /polytomic-importer
1818
1919# Copies your code file repository to the filesystem
2020COPY entrypoint.sh /entrypoint.sh
Original file line number Diff line number Diff line change 1- # terraform-export-gh-action
1+ # terraform-export-gh-action
2+
3+ The ` polytomic/terraform-export-gh-action ` action exports Polytomic resources to
4+ Terraform HCL.
5+
6+ See https://github.com/polytomic/terraform-sync-template for a template
7+ repository that configures the action and uses it to create pull requests for
8+ changes.
Original file line number Diff line number Diff line change 11# action.yml
22name : " Polytomic Terraform Sync"
3- description : " Syncs polytomic resources into HCL"
3+ description : " Syncs Polytomic resources to HCL"
4+ branding :
5+ icon : " archive"
6+ color : " purple"
47inputs :
58 api_key :
69 description : " Polytomic API key"
710 required : true
811 output_dir :
9- description : " Directory to output HCL files to "
12+ description : " Output directory for exported HCL "
1013 required : false
1114 default : " terraform"
1215 url :
13- description : " URL to the polytomic API "
16+ description : " Polytomic deployment URL "
1417 required : false
15- default : " app.polytomic.com"
18+ default : " https:// app.polytomic.com"
1619runs :
1720 using : " docker"
1821 image : " Dockerfile"
Original file line number Diff line number Diff line change 77URL=$3
88
99# Run the polytomic importer
10- echo " Running polytomic importer"
10+ echo " Running Polytomic importer"
1111
1212# Generate HCL from the app
1313/polytomic-importer run \
You can’t perform that action at this time.
0 commit comments