Files
lms/.gitea/workflows/deploy.yml
marcio.fernandes 2fbc329077
Some checks failed
deploy / deploy (3.10) (push) Failing after 42s
deploy / deploy (3.11) (push) Failing after 8s
deploy / deploy (3.12) (push) Failing after 8s
deploy / deploy (3.9) (push) Failing after 9s
deploy / deploy (pypy3.10) (push) Successful in 40s
deploy / deploy (pypy3.9) (push) Successful in 43s
Update .gitea/workflows/deploy.yml
2024-08-04 03:47:05 +00:00

47 lines
1.6 KiB
YAML

name: deploy
run-name: ${{ gitea.actor }} invoke portainer webhook
on: [push]
jobs:
deploy:
runs-on: "homesrv01"
strategy:
matrix:
python-version: ["pypy3.9", "pypy3.10", "3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
# You can test your matrix by printing the current Python version
- name: Display Python version
run: python -c "import sys; print(sys.version)"
# with:
# python-version: '3.12.4' # Version range or exact version of a Python version to use, using SemVer's version range syntax
#architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified
#- run: python my_script.py
#strategy:
# matrix:
# python-version: [ '2.x', '3.x', 'pypy2', 'pypy3' ]
#steps:
# - name: update
# run: |
# apt update -y && apt upgrade -y
# - name: install ansible
# run: |
# apt update -y
# apt install python3-pip -y
# python3 -m pip install ansible
# python3 -m pip install ansible-lint
# - uses: actions/checkout@v2
# - uses: actions/setup-python@v2
# with:
# python-version: '3.x' # Version range or exact version of a Python version to use, using SemVer's version range syntax
# architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified
# - name: Portainer webhook
# run: |
# curl -X POST "${{secrets.PORTAINER_WEBHOOK_URL}}"