Skip to content

Commit 9c400ee

Browse files
authored
Add release workflow (#61)
1 parent 516021f commit 9c400ee

File tree

4 files changed

+27
-55
lines changed

4 files changed

+27
-55
lines changed
Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/workflows/release.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Release
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
permissions:
8+
contents: read
9+
id-token: write
10+
11+
jobs:
12+
build_and_push_us:
13+
name: "Sandbox Registry: us-docker.pkg.dev"
14+
uses: osinfra-io/github-misc-called-workflows/.github/workflows/build-and-push.yml@v0.1.7
15+
if: github.actor != 'dependabot[bot]'
16+
with:
17+
cache_from: type=registry,ref=us-docker.pkg.dev/plt-lz-services-tf7f-sb/plt-docker-standard/istio-test:latest
18+
cache_to: type=inline
19+
build_args: |
20+
DD_GIT_REPOSITORY_URL=https://github.com/${{ github.repository }}
21+
DD_GIT_COMMIT_SHA=${{ github.sha }}
22+
registry: us-docker.pkg.dev
23+
service_account: plt-istio-test-github@plt-lz-terraform-tf00-sb.iam.gserviceaccount.com
24+
tags: |
25+
us-docker.pkg.dev/plt-lz-services-tf7f-sb/plt-docker-standard/istio-test:${{ github.event.release.tag_name }}
26+
us-docker.pkg.dev/plt-lz-services-tf7f-sb/plt-docker-standard/istio-test:latest
27+
workload_identity_provider: projects/746490462722/locations/global/workloadIdentityPools/github-actions/providers/github-actions-oidc

.gitignore

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,9 @@
11
# .gitignore
22
# https://docs.github.com/en/get-started/getting-started-with-git/ignoring-files
33

4-
# Local .terraform directories
5-
**/.terraform/*
6-
7-
# .tfstate files
8-
*.tfstate
9-
*.tfstate.*
10-
11-
# Crash log files
12-
crash.log
13-
144
# Datadog Static Analysis
155
static-analysis.datadog.yml
166

17-
# Ignore provider lock file
18-
.terraform.lock.hcl
19-
20-
# Ignore any local.tfvars. Most .tfvars files are managed as part of configuration and so should
21-
# be included in version control.
22-
local.tfvars
23-
24-
# Provider.tf is used for local development of modules and shouldn't be added to repos.
25-
provider.tf
26-
27-
# Ignore override files as they are usually used to override ressources locally
28-
override.tf
29-
override.tf.json
30-
*_override.tf
31-
*_override.tf.json
32-
33-
# Ignore plan output files
34-
plan.out
35-
36-
# Ignore Infracost directories and files
37-
.infracost
38-
397
# Ignore Visual Studio Code directories
408
.vscode
419

.pre-commit-config.yaml

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -7,28 +7,6 @@ repos:
77
- id: trailing-whitespace
88
- id: check-symlinks
99

10-
11-
- repo: https://github.com/antonbabenko/pre-commit-terraform
12-
rev: v1.97.0
13-
hooks:
14-
- id: terraform_fmt
15-
16-
# To speed up local validation add the following to your ~/.zshrc:
17-
# export TF_PLUGIN_CACHE_DIR=$HOME/.terraform.d/plugin-cache
18-
19-
- id: terraform_validate
20-
args:
21-
- --hook-config=--retry-once-with-cleanup=true
22-
- --tf-init-args=-upgrade
23-
24-
# Always run after terraform_validate
25-
26-
- id: terraform_docs
27-
args:
28-
- --hook-config=--path-to-file=README.md
29-
- --hook-config=--add-to-exiting-file=true
30-
- --hook-config=--create-file-if-not-exist=false
31-
3210
- repo: https://github.com/bridgecrewio/checkov.git
3311
rev: 3.2.353
3412
hooks:

0 commit comments

Comments
 (0)