diff --git a/.github/workflows/backups.yml b/.github/workflows/backups.yml index 2acd7c7..b6194d4 100644 --- a/.github/workflows/backups.yml +++ b/.github/workflows/backups.yml @@ -1,10 +1,5 @@ --- - -name: Backup Github Respository - -# ------------------------------------------------------------------------------------------------- -# When to run -# ------------------------------------------------------------------------------------------------- +name: Backup Repository on: push: @@ -13,11 +8,10 @@ on: jobs: backup: - uses: Flaconi/github-reusable-workflow/.github/workflows/backups.yml@stable + uses: Flaconi/github-reusable-workflow/.github/workflows/backups.yml@v1 with: enabled: True region: eu-central-1 secrets: iam_role_arn: ${{ secrets.BACKUP_REPO_IAM_ROLE }} bucket_name: ${{ secrets.BACKUP_REPO_BUCKET }} - git_read_token: ${{ secrets.REPO_READ_TOKEN }} diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 56b4ee4..7cb56ac 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,22 +1,9 @@ --- - -# ------------------------------------------------------------------------------------------------- -# Job Name -# ------------------------------------------------------------------------------------------------- name: lint - -# ------------------------------------------------------------------------------------------------- -# When to run -# ------------------------------------------------------------------------------------------------- on: - # Runs on Pull Requests pull_request: - -# ------------------------------------------------------------------------------------------------- -# What to run -# ------------------------------------------------------------------------------------------------- jobs: lint: name: "Lint" @@ -29,17 +16,10 @@ jobs: - gen steps: - # ------------------------------------------------------------ - # Setup repository - # ------------------------------------------------------------ - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 - - # ------------------------------------------------------------ - # Lint repository - # ------------------------------------------------------------ - name: "make ${{ matrix.target }}" run: | retry() { diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index e627dfd..8c15046 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -1,11 +1,15 @@ +--- name: Release Drafter on: push: - # branches to consider in the event; optional, defaults to all branches: - master +permissions: + contents: write + pull-requests: write + jobs: update_release_draft: runs-on: ubuntu-latest diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8033ab8..2b2afd7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,33 +1,16 @@ --- - -# ------------------------------------------------------------------------------------------------- -# Job Name -# ------------------------------------------------------------------------------------------------- name: test - -# ------------------------------------------------------------------------------------------------- -# When to run -# ------------------------------------------------------------------------------------------------- on: - # Runs on Pull Requests pull_request: - -# ------------------------------------------------------------------------------------------------- -# What to run -# ------------------------------------------------------------------------------------------------- jobs: test: name: Test runs-on: ubuntu-latest steps: - - # ------------------------------------------------------------ - # Checkout repository - # ------------------------------------------------------------ - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 diff --git a/Makefile b/Makefile index a425945..37f97e8 100644 --- a/Makefile +++ b/Makefile @@ -77,7 +77,7 @@ test: _pull-tf echo "------------------------------------------------------------"; \ echo "# Terraform init"; \ echo "------------------------------------------------------------"; \ - if docker run $$(tty -s && echo "-it" || echo) --rm -v "$(CURRENT_DIR):/t" --workdir "$${DOCKER_PATH}" hashicorp/terraform:$(TF_VERSION) \ + if docker run $$(tty -s && echo "-it" || echo) --rm --network host -v "$(CURRENT_DIR):/t" --workdir "$${DOCKER_PATH}" hashicorp/terraform:$(TF_VERSION) \ init \ -lock=false \ -upgrade \ @@ -88,7 +88,7 @@ test: _pull-tf echo "OK"; \ else \ echo "Failed"; \ - docker run $$(tty -s && echo "-it" || echo) --rm -v "$(CURRENT_DIR):/t" --workdir "$${DOCKER_PATH}" --entrypoint=rm hashicorp/terraform:$(TF_VERSION) -rf .terraform/ || true; \ + docker run $$(tty -s && echo "-it" || echo) --rm -v "$(CURRENT_DIR):/t" --workdir "$${DOCKER_PATH}" --entrypoint=sh hashicorp/terraform:$(TF_VERSION) -c "rm -rf .terraform*" || true; \ exit 1; \ fi; \ echo; \ @@ -100,10 +100,10 @@ test: _pull-tf $(ARGS) \ .; then \ echo "OK"; \ - docker run $$(tty -s && echo "-it" || echo) --rm -v "$(CURRENT_DIR):/t" --workdir "$${DOCKER_PATH}" --entrypoint=rm hashicorp/terraform:$(TF_VERSION) -rf .terraform/ || true; \ + docker run $$(tty -s && echo "-it" || echo) --rm -v "$(CURRENT_DIR):/t" --workdir "$${DOCKER_PATH}" --entrypoint=sh hashicorp/terraform:$(TF_VERSION) -c "rm -rf .terraform*" || true; \ else \ echo "Failed"; \ - docker run $$(tty -s && echo "-it" || echo) --rm -v "$(CURRENT_DIR):/t" --workdir "$${DOCKER_PATH}" --entrypoint=rm hashicorp/terraform:$(TF_VERSION) -rf .terraform/ || true; \ + docker run $$(tty -s && echo "-it" || echo) --rm -v "$(CURRENT_DIR):/t" --workdir "$${DOCKER_PATH}" --entrypoint=sh hashicorp/terraform:$(TF_VERSION) -c "rm -rf .terraform*" || true; \ exit 1; \ fi; \ echo; \