Skip to content

Commit

Permalink
Add release workflow (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
brettcurtis authored Jan 18, 2025
1 parent 516021f commit 9c400ee
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 55 deletions.
Submodule v0.1.2 deleted from 30d987
27 changes: 27 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Release

on:
release:
types: [published]

permissions:
contents: read
id-token: write

jobs:
build_and_push_us:
name: "Sandbox Registry: us-docker.pkg.dev"
uses: osinfra-io/github-misc-called-workflows/.github/workflows/build-and-push.yml@v0.1.7
if: github.actor != 'dependabot[bot]'
with:
cache_from: type=registry,ref=us-docker.pkg.dev/plt-lz-services-tf7f-sb/plt-docker-standard/istio-test:latest
cache_to: type=inline
build_args: |
DD_GIT_REPOSITORY_URL=https://github.com/${{ github.repository }}
DD_GIT_COMMIT_SHA=${{ github.sha }}
registry: us-docker.pkg.dev
service_account: plt-istio-test-github@plt-lz-terraform-tf00-sb.iam.gserviceaccount.com
tags: |
us-docker.pkg.dev/plt-lz-services-tf7f-sb/plt-docker-standard/istio-test:${{ github.event.release.tag_name }}
us-docker.pkg.dev/plt-lz-services-tf7f-sb/plt-docker-standard/istio-test:latest
workload_identity_provider: projects/746490462722/locations/global/workloadIdentityPools/github-actions/providers/github-actions-oidc
32 changes: 0 additions & 32 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,41 +1,9 @@
# .gitignore
# https://docs.github.com/en/get-started/getting-started-with-git/ignoring-files

# Local .terraform directories
**/.terraform/*

# .tfstate files
*.tfstate
*.tfstate.*

# Crash log files
crash.log

# Datadog Static Analysis
static-analysis.datadog.yml

# Ignore provider lock file
.terraform.lock.hcl

# Ignore any local.tfvars. Most .tfvars files are managed as part of configuration and so should
# be included in version control.
local.tfvars

# Provider.tf is used for local development of modules and shouldn't be added to repos.
provider.tf

# Ignore override files as they are usually used to override ressources locally
override.tf
override.tf.json
*_override.tf
*_override.tf.json

# Ignore plan output files
plan.out

# Ignore Infracost directories and files
.infracost

# Ignore Visual Studio Code directories
.vscode

Expand Down
22 changes: 0 additions & 22 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,6 @@ repos:
- id: trailing-whitespace
- id: check-symlinks


- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.97.0
hooks:
- id: terraform_fmt

# To speed up local validation add the following to your ~/.zshrc:
# export TF_PLUGIN_CACHE_DIR=$HOME/.terraform.d/plugin-cache

- id: terraform_validate
args:
- --hook-config=--retry-once-with-cleanup=true
- --tf-init-args=-upgrade

# Always run after terraform_validate

- id: terraform_docs
args:
- --hook-config=--path-to-file=README.md
- --hook-config=--add-to-exiting-file=true
- --hook-config=--create-file-if-not-exist=false

- repo: https://github.com/bridgecrewio/checkov.git
rev: 3.2.353
hooks:
Expand Down

0 comments on commit 9c400ee

Please sign in to comment.