This commit is contained in:
parent
a4ca237126
commit
5692b638b0
1 changed files with 2 additions and 44 deletions
|
@ -5,48 +5,6 @@ on:
|
|||
|
||||
jobs:
|
||||
build:
|
||||
container:
|
||||
image: git.agaric.com/agaric/deploycontainer:latest
|
||||
credentials:
|
||||
username: ${ github.actor }
|
||||
password: ${ secrets.github_token }
|
||||
env:
|
||||
COMPOSER_ARGS: "install --no-dev --ignore-platform-reqs --no-scripts --optimize-autoloader"
|
||||
steps:
|
||||
- name: checkout
|
||||
uses: actions/checkout@v3
|
||||
- name: beep
|
||||
run: |
|
||||
echo "Beep!"
|
||||
echo "Beep!"
|
||||
# - name: composer install
|
||||
# run: |
|
||||
# composer config -g gitlab-token.git.drupalcode.org "${{ secrets.COMPOSER_TOKEN }}"
|
||||
# composer ${COMPOSER_ARGS}
|
||||
- name: save build
|
||||
uses: https://code.forgejo.org/forgejo/upload-artifact@v4
|
||||
with:
|
||||
name: build
|
||||
path: |
|
||||
config/*
|
||||
drush/*
|
||||
scripts/*
|
||||
vendor/*
|
||||
web/*
|
||||
composer.*
|
||||
deploy:
|
||||
runs-on: docker
|
||||
needs: build
|
||||
if: vars.DEPLOY_TEST == 1
|
||||
container:
|
||||
image: git.agaric.com/agaric/deploycontainer:0.0.3
|
||||
credentials:
|
||||
username: ${ github.actor }
|
||||
password: ${ secrets.github_token }
|
||||
steps:
|
||||
- name: retrieve artifacts
|
||||
uses: https://code.forgejo.org/forgejo/download-artifact@v4
|
||||
- name: deploy to test
|
||||
run: |
|
||||
eval `ssh-agent -s`
|
||||
ssh-add -l
|
||||
- name: Say Hello to the World
|
||||
run: echo "Hello, World!"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue