Skip to content

Commit

Permalink
chore(ci): use TPS for temporary hcloud tokens
Browse files Browse the repository at this point in the history
Co-authored-by: Julian Tölle <[email protected]>
  • Loading branch information
2 people authored and sinuscosinustan committed May 22, 2023
1 parent 1e8c751 commit 8c55f5e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 18 deletions.
5 changes: 0 additions & 5 deletions .ci/delete-token.sh

This file was deleted.

11 changes: 0 additions & 11 deletions .ci/get-token.sh

This file was deleted.

11 changes: 9 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ jobs:

molecule:
name: Molecule

permissions:
# Required for hetznercloud/tps-action
id-token: write

runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -40,11 +45,13 @@ jobs:
- name: Install ansible and molecule
run: pip3 install ansible molecule-hetznercloud

- uses: hetznercloud/tps-action@main
with:
token: ${{ secrets.HCLOUD_TOKEN }}

- name: Run molecule
run: |
export HCLOUD_TOKEN=$(./.ci/get-token.sh)
molecule test
./.ci/delete-token.sh ${HCLOUD_TOKEN}
env:
TTS_TOKEN: ${{ secrets.TTS_TOKEN }}
PY_COLORS: '1'
Expand Down

0 comments on commit 8c55f5e

Please sign in to comment.