Probando almacenamiento de artefactos
Some checks failed
CD for startPage / build (push) Successful in 10s
CD for startPage / deploy (push) Failing after 1s

This commit is contained in:
2023-07-01 01:04:03 -04:00
parent 91980f8af3
commit 89a5c713fa
3 changed files with 62 additions and 3 deletions

View File

@@ -2,14 +2,45 @@ name: CD for startPage
on:
push:
branches: main
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run build step
run: ./build.sh
- name: Store build artifact
uses: actions/upload-artifact@v3
with:
name: build
path: public/
deploy:
needs: build
runs-on: ubuntu-latest
steps:
- name: Download build artifact
uses: actions/download-artifact@v3
with:
name: build
- name: Display structure of downloaded files
run: ls -R
#
# run: |
# echo "${{ secrets.SERVER_PRIVATE_KEY }}" > private_key && chmod 600 private_key
# ssh -i private_key ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} -p ${{ secrets.SSH_PORT || 22 }} '
# cd /home/ubuntu/CounterApp &&
# git checkout master &&
# git fetch --all &&
# git reset --hard origin/master &&
# git pull origin master &&
# docker-compose -f docker-compose.prod.yml up -d --build
# '

3
.idea/dictionaries/ryuuji.xml generated Normal file
View File

@@ -0,0 +1,3 @@
<component name="ProjectDictionaryState">
<dictionary name="ryuuji" />
</component>

25
.idea/jsonSchemas.xml generated Normal file
View File

@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="JsonSchemaMappingsProjectConfiguration">
<state>
<map>
<entry key="GitHub Workflow">
<value>
<SchemaInfo>
<option name="name" value="GitHub Workflow" />
<option name="relativePathToSchema" value="https://json.schemastore.org/github-workflow.json" />
<option name="applicationDefined" value="true" />
<option name="patterns">
<list>
<Item>
<option name="path" value=".gitea/workflows/deploy.yaml" />
</Item>
</list>
</option>
</SchemaInfo>
</value>
</entry>
</map>
</state>
</component>
</project>