Skip to content

Updates the missing package for unattended upgrades #72

Updates the missing package for unattended upgrades

Updates the missing package for unattended upgrades #72

Workflow file for this run

name: Deploy on preproduction
on:
push:
branches-ignore:
- main # Validation is already done on every push
workflow_call:
jobs:
test:
# CAREFUL: The part after the @ is the branch on which the file is located
# IF you ever wish to change something in .github/workflows/test.yml, You will need to change this reference too
# I did not find a way to consider the one within the current branch but I believe it would be the way to go
uses: 'OpenTermsArchive/contribution-tool/.github/workflows/test.yml@main'
deploy:
needs: [test]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
- run: git checkout HEAD
# Enable deployment from github actions https://zellwk.com/blog/github-actions-deploy/
- name: Install SSH key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSH_GITHUB_ACTIONS_PRIVATE_KEY }} # generate with ssh-keygen -t rsa -b 4096 -C "[email protected]"
known_hosts: ${{ secrets.SSH_KNOWN_HOSTS }} # generate with ssh-keyscan -H 51.89.227.200
- run: echo "${{ secrets.ANSIBLE_VAULT_PASSWORD }}" > vault.key # Same as OpenTermsArchive.org
- run: pip install --upgrade setuptools
- run: pip install ansible==2.10.7
- run: ansible-galaxy collection install community.general:==1.3.5
- run: ansible-galaxy install -r ops/requirements.yml
# Preproduction
- name: Deploy on preproduction
run: npm run deploy:preproduction