composer #326
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: composer | |
on: | |
push: | |
tag: | |
- v1.* | |
schedule: | |
- cron: '0 11 */2 * *' | |
jobs: | |
run-composer-bin: | |
runs-on: ubuntu-latest | |
steps: | |
- name : php version | |
shell: bash | |
run : | | |
php -v | |
- name : composer require | |
shell: bash | |
run : | | |
mkdir -p sample/bin | |
cd sample | |
composer require takuya/php-letencrypt-acme-dns --no-ansi --no-interaction --no-progress | |
cp vendor/takuya/php-letencrypt-acme-dns/bin/request-issue.php ./bin | |
- name : copy | |
shell: bash | |
run : | | |
cd sample | |
cp vendor/takuya/php-letencrypt-acme-dns/bin/request-issue.php ./bin | |
- name : issue cert | |
shell: bash | |
run : | | |
cd sample | |
export LE_CLOUDFLARE_TOKEN=${{ secrets.LE_CLOUDFLARE_TOKEN1 }} | |
export LE_BASE_DOMAIN=${{ secrets.LE_BASE_DOMAIN1 }} | |
php bin/request-issue.php sample.$LE_BASE_DOMAIN |