Skip to content

Remove debug argument (#13) #14

Remove debug argument (#13)

Remove debug argument (#13) #14

Workflow file for this run

# This workflow will upload a Puppet Data Package when a new commit to main is pushed
---
name: Puppet Data Continuous Deployment
on: # yamllint disable-line rule:truthy
push:
branches: ["main"]
workflow_dispatch:
inputs:
debug_enabled:
type: "boolean"
description: "Setup a temporary SSH access if a test fails"
required: false
default: false
permissions:
id-token: write # This is required for requesting the JWT
contents: read
env:
ROLE_ARN: "arn:aws:iam::493370826424:role/ih-tf-infrahouse-puppet-data-github"
jobs:
deploy:
runs-on: ubuntu-22.04
strategy:
matrix:
codename: ["focal", "jammy"]
steps:
- uses: actions/checkout@v3
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v2
with:
role-to-assume: ${{ env.ROLE_ARN }}
role-session-name: github-actions
aws-region: ${{ secrets.AWS_DEFAULT_REGION }}
- name: Install dependencies
run: |
sudo bash support/install_deps.sh
- name: "Setup tmate session"
uses: "mxschmitt/action-tmate@v3"
if: "${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }}"
with:
limit-access-to-actor: true
- name: Build package
run: |
OS_VERSION=${{ matrix.codename }} make package
- name: Publish Debian package
run: |
ih-s3-reprepro \
--aws-region ${{ secrets.AWS_DEFAULT_REGION }} \
--bucket infrahouse-release-${{ matrix.codename }} \
--gpg-key-secret-id packager-key-${{ matrix.codename }} \
--gpg-passphrase-secret-id packager-passphrase-${{ matrix.codename }} \
includedeb \
${{ matrix.codename }} \
../infrahouse-puppet-data*.deb