Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Lineage pull request for: skeleton #58

Open
wants to merge 143 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
143 commits
Select commit Hold shift + click to select a range
60b612d
Enable terraform validate pre-commit hook
dav3r Aug 26, 2021
6a7fbf0
Temporarily use cisagov/setup-env-github-action@improvement/support_t…
dav3r Aug 26, 2021
895a692
Remove lint job step to initialize Terraform directories
dav3r Aug 27, 2021
b51dbb5
Revert "Temporarily use cisagov/setup-env-github-action@improvement/s…
dav3r Aug 27, 2021
1b5cd25
Merge pull request #90 from cisagov/improvement/enable_terraform_vali…
dav3r Sep 13, 2021
65b7140
Merge https://github.com/cisagov/skeleton-generic into lineage/skeleton
Sep 13, 2021
a52dbb0
Bump actions/github-script from 4 to 5
dependabot[bot] Sep 27, 2021
aff2b13
Bump python from 3.9.6-alpine to 3.10.0-alpine
dependabot[bot] Oct 11, 2021
fc28df1
Update for actions/github-script API changes
mcdonnnj Oct 17, 2021
440064a
Merge pull request #74 from cisagov/dependabot/docker/python-3.10.0-a…
jsf9k Oct 18, 2021
b66988d
Update pre-commit hooks
mcdonnnj Sep 29, 2021
f3000e5
Merge pull request #91 from cisagov/improvement/pre-commit_update
mcdonnnj Oct 19, 2021
b78b832
Update the ansible-lint version for pre-commit
mcdonnnj Oct 1, 2021
a3c5aa7
Add an ansible-lint configuration file
mcdonnnj Oct 1, 2021
14d2edb
Merge pull request #93 from cisagov/improvement/update_ansible-lint_p…
mcdonnnj Oct 19, 2021
24df40a
Add dependabot configuration for Terraform
mcdonnnj Oct 8, 2021
ff73498
Merge pull request #94 from cisagov/improvement/add_dependabot_config…
mcdonnnj Oct 19, 2021
6cf78c0
Use an id when using cisagov/setup-env-github-action
mcdonnnj Sep 30, 2021
1e16136
Use setup-env outputs for Terraform version
mcdonnnj Sep 30, 2021
64b2471
Use setup-env outputs for Packer version
mcdonnnj Oct 1, 2021
0851598
Use setup-env outputs for shfmt version
mcdonnnj Oct 1, 2021
2699e09
Use setup-env outputs for Terraform-docs version
mcdonnnj Oct 1, 2021
8797e11
Store Go version as a step output
mcdonnnj Oct 1, 2021
ee39ac5
Merge pull request #92 from cisagov/improvement/use_action_outputs
mcdonnnj Oct 19, 2021
1bdcd86
Merge https://github.com/cisagov/skeleton-generic into lineage/skeleton
Oct 19, 2021
6a10135
Update ansible-lint configuration
mcdonnnj Oct 28, 2021
4b912fe
Update ansible-lint configuration
mcdonnnj Oct 28, 2021
18c9920
Bump python from 3.10.0-alpine to 3.10.1-alpine
dependabot[bot] Dec 13, 2021
3f370eb
Update pre-commit hooks
mcdonnnj Nov 17, 2021
115af25
Merge pull request #97 from cisagov/maintenance/update_pre-commit_hooks
mcdonnnj Jan 11, 2022
6e652ec
Merge branch 'develop' into improvement/update_ansible-lint_configura…
mcdonnnj Jan 11, 2022
11eca90
Merge pull request #95 from cisagov/improvement/update_ansible-lint_c…
mcdonnnj Jan 11, 2022
f0e6779
Merge https://github.com/cisagov/skeleton-generic into lineage/skeleton
Jan 11, 2022
2c1342d
Merge branch 'develop' into lineage/skeleton
mcdonnnj Jan 11, 2022
fb31336
Merge pull request #72 from cisagov/lineage/skeleton
mcdonnnj Jan 12, 2022
54fa1dc
Merge branch 'develop' into dependabot/docker/python-3.10.1-alpine
mcdonnnj Jan 12, 2022
862c50f
Merge pull request #75 from cisagov/dependabot/docker/python-3.10.1-a…
mcdonnnj Jan 12, 2022
8782721
Merge branch 'develop' into dependabot/github_actions/actions/github-…
mcdonnnj Jan 12, 2022
4673247
Merge pull request #73 from cisagov/dependabot/github_actions/actions…
mcdonnnj Jan 12, 2022
ad71ef3
Update pre-commit hooks
mcdonnnj Feb 24, 2022
a05b45a
Add comment to Dependabot configuration
mcdonnnj Feb 25, 2022
77b20ab
Disable comments-indentation rule for yamllint
mcdonnnj Feb 25, 2022
d712690
Merge pull request #99 from cisagov/improvement/update_dependabot_and…
mcdonnnj Feb 25, 2022
3303e46
Merge branch 'develop' into maintenance/update_pre-commit_hooks
mcdonnnj Feb 25, 2022
d0817e2
Merge pull request #98 from cisagov/maintenance/update_pre-commit_hooks
mcdonnnj Feb 25, 2022
706bded
Use asterisks for emphasis- and strong-styles
mcdonnnj Feb 25, 2022
7868a35
Add missing hyphen in markdownlint rule header
mcdonnnj Feb 25, 2022
6978f2a
Merge pull request #100 from cisagov/improvement/update_markdownlint_…
mcdonnnj Feb 25, 2022
4ee1bfd
Bump actions/setup-python from 2 to 3
dependabot[bot] Feb 28, 2022
3406c2d
Bump actions/checkout from 2 to 3
dependabot[bot] Mar 7, 2022
9a03808
Update pre-commit hooks
mcdonnnj Mar 28, 2022
511a37c
Add Dependabot ignore directives
mcdonnnj Mar 28, 2022
5839926
Upgrade from Python 3.9 to 3.10 for the `lint` job in GHA
mcdonnnj Mar 28, 2022
e22c12c
Use consistent quoting for software versions
mcdonnnj Mar 28, 2022
a3f12f4
Merge pull request #101 from cisagov/dependabot/github_actions/action…
mcdonnnj Apr 1, 2022
6869c68
Merge branch 'develop' into dependabot/github_actions/actions/checkout-3
mcdonnnj Apr 1, 2022
e190ae7
Merge pull request #102 from cisagov/dependabot/github_actions/action…
mcdonnnj Apr 1, 2022
c576ef5
Bump actions/cache from 2 to 3
dependabot[bot] Apr 1, 2022
496ea93
Merge branch 'develop' into improvement/add_dependabot_ignores_for_gi…
mcdonnnj Apr 1, 2022
a9c93d0
Merge pull request #107 from cisagov/improvement/add_dependabot_ignor…
mcdonnnj Apr 1, 2022
d168151
Merge pull request #104 from cisagov/dependabot/github_actions/action…
mcdonnnj Apr 1, 2022
14aff9c
Merge branch 'develop' into improvement/use_python_3.10_for_gha
mcdonnnj Apr 1, 2022
504ed9e
Merge pull request #106 from cisagov/improvement/use_python_3.10_for_gha
mcdonnnj Apr 1, 2022
57d6ac0
Merge branch 'develop' into maintenance/update_pre-commit_hooks
mcdonnnj Apr 1, 2022
da532a5
Merge pull request #105 from cisagov/maintenance/update_pre-commit_hooks
mcdonnnj Apr 1, 2022
49d87d4
Add pre-commit hooks to validate GitHub Actions content
mcdonnnj Apr 1, 2022
4215ba3
Merge pull request #109 from cisagov/improvement/add_github_actions_p…
mcdonnnj Apr 6, 2022
57b4abe
Update actions/setup-go from v2 to v3
mcdonnnj May 27, 2022
8f68498
Update the version of Go used from 1.16 to 1.18
mcdonnnj May 27, 2022
7e230e1
Merge github.com:cisagov/skeleton-generic into lineage/skeleton
mcdonnnj May 29, 2022
7213771
Enable Dependabot ignore directives
mcdonnnj May 29, 2022
534fb66
Fix issues with the `build.yml` file
mcdonnnj May 29, 2022
d61a7cb
Add Dependabot dependency ownership for this repository
mcdonnnj May 31, 2022
499d1d5
Update code to use the "docker compose" syntax vice "docker-compose"
jsf9k Jun 7, 2022
73be2f1
Merge pull request #79 from cisagov/lineage/skeleton
mcdonnnj Jun 13, 2022
62da9e2
Merge pull request #101 from cisagov/improvement/update_dependabot_ig…
mcdonnnj Jun 13, 2022
91ae75f
Bump docker/build-push-action from 2 to 3
mcdonnnj May 31, 2022
38ed0d4
Bump docker/login-action from 1 to 2
mcdonnnj May 31, 2022
2f93d69
Bump docker/setup-buildx-action from 1 to 2
mcdonnnj May 31, 2022
1156d96
Bump docker/setup-qemu-action from 1 to 2
mcdonnnj May 31, 2022
0aa0b2d
Bump actions/download-artifact from 2 to 3
mcdonnnj May 31, 2022
3fd728d
Bump actions/upload-artifact from 2 to 3
mcdonnnj May 31, 2022
d7528a1
Merge pull request #102 from cisagov/improvement/update_docker_action…
mcdonnnj Jun 13, 2022
cfb36d1
Improve language in a comment
jsf9k Jun 13, 2022
271a3b0
Merge branch 'develop' into bugfix/update-docker-compose-syntax
mcdonnnj Jun 13, 2022
9cea64d
Merge pull request #105 from cisagov/bugfix/update-docker-compose-syntax
mcdonnnj Jun 13, 2022
07dbc1b
Merge https://github.com/cisagov/skeleton-docker into lineage/skeleton
Jun 13, 2022
fc55e84
Update the version of Go used from 1.18 to 1.19
mcdonnnj Nov 8, 2022
ec83308
Merge pull request #113 from cisagov/improvement/update_go_configuration
mcdonnnj Nov 8, 2022
2775dfa
Bump hashicorp/setup-terraform from 1 to 2
dependabot[bot] Nov 8, 2022
4925eb1
Merge pull request #111 from cisagov/dependabot/github_actions/hashic…
mcdonnnj Nov 8, 2022
1f7c62e
Bump actions/setup-python from 3 to 4
dependabot[bot] Nov 8, 2022
f74b4a3
Merge pull request #115 from cisagov/dependabot/github_actions/action…
mcdonnnj Nov 8, 2022
6a9c630
Add an ownership comment to the Dependabot configuration
mcdonnnj May 27, 2022
dfd54e9
Add additional Dependabot ignore directives
mcdonnnj May 27, 2022
a8bcddd
Merge pull request #112 from cisagov/improvement/update_dependabot_ig…
mcdonnnj Nov 8, 2022
71a88a5
Remove usage of set-output from our GitHub Actions workflow
mcdonnnj Oct 11, 2022
0867685
Merge pull request #119 from cisagov/bug/update_github_actions_workflow
mcdonnnj Nov 8, 2022
21a68f4
Enable the allow-non-breakable-inline-mappings rule for yamllint
mcdonnnj Sep 7, 2022
3547c4f
Increase the maximum line length in the yamllint configuration
mcdonnnj Sep 7, 2022
cfa9ba5
Merge pull request #117 from cisagov/improvement/update_yamllint_line…
mcdonnnj Nov 8, 2022
b1ea3d4
Fix the repo of the flake8 pre-commit hook
mcdonnnj Oct 14, 2022
2a98c6a
Merge pull request #120 from cisagov/bug/verify_pre-commit_hook_repos
mcdonnnj Nov 8, 2022
fb8d13f
Update pre-commit hooks
mcdonnnj May 27, 2022
bb9c2a0
Merge pull request #114 from cisagov/maintenance/update_pre-commit_hooks
mcdonnnj Nov 8, 2022
e5fbd70
Add a label configuration file
mcdonnnj Oct 5, 2022
b9792a8
Add a workflow to synchronize repository labels
mcdonnnj Oct 5, 2022
161c4ae
Remove duplicate label
jsf9k Oct 21, 2022
5993231
Add a label for issues or PRs that involve test code
jsf9k Oct 21, 2022
c4fbf20
Merge pull request #118 from cisagov/improvement/add_label_sync_workflow
mcdonnnj Nov 8, 2022
6cc53dc
Fix GitHub label color values
mcdonnnj Nov 9, 2022
8f12635
Correct spacing in yamllint rules
mcdonnnj Nov 9, 2022
e803e1a
Merge pull request #122 from cisagov/bug/fix_bad_configurations
mcdonnnj Nov 9, 2022
bade9e2
Merge remote-tracking branch 'skeleton-generic/develop' into lineage/…
jsf9k Nov 9, 2022
663dd87
Add repository specific label
mcdonnnj Nov 14, 2022
3aa675e
Update Python setup in the test job for GHA
mcdonnnj Nov 14, 2022
827ff50
Remove uses of the `set-output` command
mcdonnnj Nov 15, 2022
8d2691e
Merge pull request #136 from cisagov/lineage/skeleton
mcdonnnj Nov 21, 2022
a856426
Update the version of the second bandit hook
mcdonnnj Nov 21, 2022
0ad31cc
Correct poor English in comments for the bandit pre-commit hooks
mcdonnnj Nov 21, 2022
649ad63
Merge pull request #138 from cisagov/bug/update_bandit_in_pre-commit_…
mcdonnnj Nov 21, 2022
0d24f9c
Update the CodeQL configuration
mcdonnnj Nov 14, 2022
26cfb4e
Merge pull request #137 from cisagov/improvement/update_codeql_workflow
mcdonnnj Nov 21, 2022
87d0f97
Remove dangling argument in the pre-commit configuration
mcdonnnj Jun 30, 2022
eacc476
Update files used for Python requirements by LGTM
mcdonnnj Jun 30, 2022
42f3468
Restore the alerts badging for LGTM
mcdonnnj Jun 30, 2022
c21cacc
Merge pull request #115 from cisagov/improvement/fix_dangling_configu…
mcdonnnj Nov 21, 2022
5589f23
Bump actions/github-script from 5 to 6
dependabot[bot] Nov 21, 2022
362fad5
Merge pull request #77 from cisagov/dependabot/github_actions/actions…
mcdonnnj Nov 21, 2022
1a8ab89
Fix overly match-happy sed commands
jsf9k Sep 13, 2022
8f09cbf
Merge pull request #122 from cisagov/bugfix/tighten-regex-in-version-…
mcdonnnj Nov 21, 2022
ba23619
Prettify a comment
jsf9k Nov 4, 2022
343c0cb
Rework creation of unprivileged user and installation of dependencies
jsf9k Nov 4, 2022
717334c
Add comments and prefer long CLI options
jsf9k Nov 4, 2022
2a72bf6
Move ECHO_MESSAGE declaration to the "Prepare to run" section
jsf9k Nov 4, 2022
6f639fe
Merge pull request #135 from cisagov/improvement/dockerfile
mcdonnnj Nov 21, 2022
bd72acb
Merge https://github.com/cisagov/skeleton-docker into lineage/skeleton
Nov 21, 2022
8cf8d23
Remove LGTM from the repository
mcdonnnj Nov 22, 2022
81f6c71
Merge pull request #139 from cisagov/maintenance/remove_lgtm
mcdonnnj Nov 22, 2022
fa6a51a
Merge https://github.com/cisagov/skeleton-docker into lineage/skeleton
Nov 22, 2022
8c73bf4
Restore Dockerfile changes from review
mcdonnnj Nov 22, 2022
8de42e4
Merge pull request #140 from cisagov/bug/fix_clobbered_dockerfile
mcdonnnj Nov 22, 2022
f828eba
Merge https://github.com/cisagov/skeleton-docker into lineage/skeleton
Nov 22, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .ansible-lint
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
# See https://ansible-lint.readthedocs.io/en/latest/configuring.html
# for a list of the configuration elements that can exist in this
# file.
enable_list:
# Useful checks that one must opt-into. See here for more details:
# https://ansible-lint.readthedocs.io/en/latest/rules.html
- fcqn-builtins
- no-log-password
- no-same-owner
exclude_paths:
# This exclusion is implicit, unless exclude_paths is defined
- .cache
# Seems wise to ignore this too
- .github
kinds:
# This will force our systemd specific molecule configurations to be treated
# as plain yaml files by ansible-lint. This mirrors the default kind
# configuration in ansible-lint for molecule configurations:
# yaml: "**/molecule/*/{base,molecule}.{yaml,yml}"
- yaml: "**/molecule/*/molecule-{no,with}-systemd.yml"
use_default_rules: true
27 changes: 27 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
---

# Any ignore directives should be uncommented in downstream projects to disable
# Dependabot updates for the given dependency. Downstream projects will get
# these updates when the pull request(s) in the appropriate skeleton are merged
# and Lineage processes these changes.

version: 2
updates:
- package-ecosystem: "docker"
Expand All @@ -11,8 +16,30 @@ updates:
directory: "/"
schedule:
interval: "weekly"
ignore:
# Managed by cisagov/skeleton-generic
- dependency-name: actions/cache
- dependency-name: actions/checkout
- dependency-name: actions/setup-go
- dependency-name: actions/setup-python
- dependency-name: hashicorp/setup-terraform
- dependency-name: mxschmitt/action-tmate
# Managed by cisagov/skeleton-docker
# - dependency-name: actions/download-artifact
# - dependency-name: actions/github-script
# - dependency-name: actions/upload-artifact
# - dependency-name: docker/build-push-action
# - dependency-name: docker/login-action
# - dependency-name: docker/setup-buildx-action
# - dependency-name: docker/setup-qemu-action
# - dependency-name: github/codeql-action

- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "weekly"

- package-ecosystem: "terraform"
directory: "/"
schedule:
interval: "weekly"
70 changes: 70 additions & 0 deletions .github/labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
---
# Rather than breaking up descriptions into multiline strings we disable that
# specific rule in yamllint for this file.
# yamllint disable rule:line-length
- color: "eb6420"
description: This issue or pull request is awaiting the outcome of another issue or pull request
name: blocked
- color: "000000"
description: This issue or pull request involves changes to existing functionality
name: breaking change
- color: "d73a4a"
description: This issue or pull request addresses broken functionality
name: bug
- color: "07648d"
description: This issue will be advertised on code.gov's Open Tasks page (https://code.gov/open-tasks)
name: code.gov
- color: "0366d6"
description: Pull requests that update a dependency file
name: dependencies
- color: "2497ed"
description: Pull requests that update Docker code
name: docker
- color: "5319e7"
description: This issue or pull request improves or adds to documentation
name: documentation
- color: "cfd3d7"
description: This issue or pull request already exists or is covered in another issue or pull request
name: duplicate
- color: "b005bc"
description: A high-level objective issue encompassing multiple issues instead of a specific unit of work
name: epic
- color: "000000"
description: Pull requests that update GitHub Actions code
name: github-actions
- color: "0e8a16"
description: This issue or pull request is well-defined and good for newcomers
name: good first issue
- color: "ff7518"
description: Pull request that should count toward Hacktoberfest participation
name: hacktoberfest-accepted
- color: "a2eeef"
description: This issue or pull request will add or improve functionality, maintainability, or ease of use
name: improvement
- color: "fef2c0"
description: This issue or pull request is not applicable, incorrect, or obsolete
name: invalid
- color: "ce099a"
description: This pull request is ready to merge during the next Lineage Kraken release
name: kraken 🐙
- color: "a4fc5d"
description: This issue or pull request requires further information
name: need info
- color: "fcdb45"
description: This pull request is awaiting an action or decision to move forward
name: on hold
- color: "ef476c"
description: This issue is a request for information or needs discussion
name: question
- color: "00008b"
description: This issue or pull request adds or otherwise modifies test code
name: test
- color: "1d76db"
description: This issue or pull request pulls in upstream updates
name: upstream update
- color: "d4c5f9"
description: This issue or pull request increments the version number
name: version bump
- color: "ffffff"
description: This issue will not be incorporated
name: wontfix
116 changes: 56 additions & 60 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ name: build
on:
push:
branches:
- '**'
- "**"
tags:
- 'v*.*.*'
- "v*.*.*"
pull_request:
schedule:
- cron: '0 10 * * *' # everyday at 10am
- cron: "0 10 * * *" # everyday at 10am
repository_dispatch:
# Respond to rebuild requests. See: https://github.com/cisagov/action-apb/
types: [apb]
Expand All @@ -18,11 +18,11 @@ on:
remote-shell:
description: "Debug with remote shell"
required: true
default: false
default: "false"
image-tag:
description: "Tag to apply to pushed images"
required: true
default: dispatch
default: "dispatch"

env:
BUILDX_CACHE_DIR: ~/.cache/buildx
Expand All @@ -41,33 +41,30 @@ jobs:
name: "Lint sources"
runs-on: ubuntu-latest
steps:
- uses: cisagov/setup-env-github-action@develop
- uses: actions/checkout@v2
- id: setup-env
uses: cisagov/setup-env-github-action@develop
- uses: actions/checkout@v3
- id: setup-python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.9
# GO_VERSION and GOCACHE are used by the cache task, so the Go
# installation must happen before that.
- uses: actions/setup-go@v2
python-version: "3.10"
# We need the Go version and Go cache location for the actions/cache step,
# so the Go installation must happen before that.
- id: setup-go
uses: actions/setup-go@v3
with:
go-version: '1.16'
- name: Store installed Go version
run: |
echo "GO_VERSION="\
"$(go version | sed 's/^go version go\([0-9.]\+\) .*/\1/')" \
>> $GITHUB_ENV
go-version: "1.19"
- name: Lookup Go cache directory
id: go-cache
run: |
echo "::set-output name=dir::$(go env GOCACHE)"
- uses: actions/cache@v2
echo "dir=$(go env GOCACHE)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
env:
BASE_CACHE_KEY: "${{ github.job }}-${{ runner.os }}-\
py${{ steps.setup-python.outputs.python-version }}-\
go${{ env.GO_VERSION }}-\
packer${{ env.PACKER_VERSION }}-\
tf${{ env.TERRAFORM_VERSION }}-"
go${{ steps.setup-go.outputs.go-version }}-\
packer${{ steps.setup-env.outputs.packer-version }}-\
tf${{ steps.setup-env.outputs.terraform-version }}-"
with:
# Note that the .terraform directory IS NOT included in the
# cache because if we were caching, then we would need to use
Expand All @@ -89,6 +86,8 @@ jobs:
- name: Setup curl cache
run: mkdir -p ${{ env.CURL_CACHE_DIR }}
- name: Install Packer
env:
PACKER_VERSION: ${{ steps.setup-env.outputs.packer-version }}
run: |
PACKER_ZIP="packer_${PACKER_VERSION}_linux_amd64.zip"
curl --output ${{ env.CURL_CACHE_DIR }}/"${PACKER_ZIP}" \
Expand All @@ -99,22 +98,19 @@ jobs:
${{ env.CURL_CACHE_DIR }}/"${PACKER_ZIP}"
sudo mv /usr/local/bin/packer /usr/local/bin/packer-default
sudo ln -s /opt/packer/packer /usr/local/bin/packer
- uses: hashicorp/setup-terraform@v1
- uses: hashicorp/setup-terraform@v2
with:
terraform_version: ${{ env.TERRAFORM_VERSION }}
terraform_version: ${{ steps.setup-env.outputs.terraform-version }}
- name: Install shfmt
run: go install mvdan.cc/sh/v3/cmd/shfmt@${SHFMT_VERSION}
env:
PACKAGE_URL: mvdan.cc/sh/v3/cmd/shfmt
PACKAGE_VERSION: ${{ steps.setup-env.outputs.shfmt-version }}
run: go install ${PACKAGE_URL}@${PACKAGE_VERSION}
- name: Install Terraform-docs
run: |
go install \
github.com/terraform-docs/terraform-docs@${TERRAFORM_DOCS_VERSION}
- name: Find and initialize Terraform directories
run: |
for path in $(find . -not \( -type d -name ".terraform" -prune \) \
-type f -iname "*.tf" -exec dirname "{}" \; | sort -u); do \
echo "Initializing '$path'..."; \
terraform init -input=false -backend=false "$path"; \
done
env:
PACKAGE_URL: github.com/terraform-docs/terraform-docs
PACKAGE_VERSION: ${{ steps.setup-env.outputs.terraform-docs-version }}
run: go install ${PACKAGE_URL}@${PACKAGE_VERSION}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down Expand Up @@ -175,13 +171,13 @@ jobs:
source_version: ${{ steps.prep.outputs.source_version }}
tags: ${{ steps.prep.outputs.tags }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Gather repository metadata
id: repo
uses: actions/github-script@v4
uses: actions/github-script@v6
with:
script: |
const repo = await github.repos.get(context.repo)
const repo = await github.rest.repos.get(context.repo)
return repo.data
- name: Calculate output values
id: prep
Expand Down Expand Up @@ -219,9 +215,9 @@ jobs:
do
TAGS="${TAGS},ghcr.io/${i}"
done
echo ::set-output name=created::$(date -u +'%Y-%m-%dT%H:%M:%SZ')
echo ::set-output name=source_version::$(./bump_version.sh show)
echo ::set-output name=tags::${TAGS}
echo "created=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> $GITHUB_OUTPUT
echo "source_version=$(./bump_version.sh show)" >> $GITHUB_OUTPUT
echo "tags=${TAGS}" >> $GITHUB_OUTPUT
echo tags=${TAGS}
- name: Setup tmate debug session
uses: mxschmitt/action-tmate@v3
Expand All @@ -234,13 +230,13 @@ jobs:
needs: [prepare]
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2
- name: Cache Docker layers
uses: actions/cache@v2
uses: actions/cache@v3
env:
BASE_CACHE_KEY: buildx-${{ runner.os }}-
with:
Expand All @@ -252,7 +248,7 @@ jobs:
run: mkdir -p dist
- name: Build image
id: docker_build
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
build-args: |
VERSION=${{ needs.prepare.outputs.source_version }}
Expand Down Expand Up @@ -290,7 +286,7 @@ jobs:
- name: Compress image
run: gzip dist/image.tar
- name: Upload artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: dist
path: dist
Expand All @@ -303,13 +299,13 @@ jobs:
runs-on: ubuntu-latest
needs: [build]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- id: setup-python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.9
python-version: "3.10"
- name: Cache testing environments
uses: actions/cache@v2
uses: actions/cache@v3
env:
BASE_CACHE_KEY: "${{ github.job }}-${{ runner.os }}-\
py${{ steps.setup-python.outputs.python-version }}-"
Expand All @@ -325,7 +321,7 @@ jobs:
python -m pip install --upgrade pip
pip install --upgrade --requirement requirements-test.txt
- name: Download docker image artifact
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: dist
path: dist
Expand All @@ -351,24 +347,24 @@ jobs:
if: github.event_name != 'pull_request'
steps:
- name: Login to Docker Hub
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2
- name: Cache Docker layers
uses: actions/cache@v2
uses: actions/cache@v3
env:
BASE_CACHE_KEY: buildx-${{ runner.os }}-
with:
Expand All @@ -380,7 +376,7 @@ jobs:
run: ./buildx-dockerfile.sh
- name: Build and push platform images to registries
id: docker_build
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
build-args: |
VERSION=${{ needs.prepare.outputs.source_version }}
Expand Down
Loading