Test on push #16
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: debian | |
on: | |
push: | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
image: ["debian:bullseye", "debian:bookworm"] | |
rails_env: [staging, production] | |
container: | |
image: ${{ matrix.image }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Update system packages | |
run: apt-get update -y | |
- name: Install needed packages | |
run: apt-get install -y lsb-release sudo python3-pip openssh-server ansible | |
- name: Create hosts file | |
run: echo "localhost ansible_connection=local ansible_user=root" > hosts | |
- name: Generate dummy SSH key | |
run: mkdir ~/.ssh && ssh-keygen -t rsa -N "" -f ~/.ssh/id_rsa | |
- name: Run CONSUL DEMOCRACY installer | |
run: ansible-playbook consul.yml -i hosts --extra-vars "env=${{ matrix.rails_env }} domain=localhost errbit=False" |