Fix workflow usando actions/checkout en lugar de git clone manual
All checks were successful
build-and-deploy / build-and-deploy (push) Successful in 4s
All checks were successful
build-and-deploy / build-and-deploy (push) Successful in 4s
This commit is contained in:
@@ -14,13 +14,10 @@ jobs:
|
|||||||
APP_DOMAIN: ${{ vars.APP_DOMAIN }}
|
APP_DOMAIN: ${{ vars.APP_DOMAIN }}
|
||||||
NUXT_PUBLIC_APP_URL: ${{ vars.NUXT_PUBLIC_APP_URL }}
|
NUXT_PUBLIC_APP_URL: ${{ vars.NUXT_PUBLIC_APP_URL }}
|
||||||
steps:
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Build, push and deploy
|
- name: Build, push and deploy
|
||||||
run: |
|
run: |
|
||||||
# Checkout
|
|
||||||
git clone https://gitea.nucleoriofrio.com/${{ github.repository }}.git /tmp/build-${{ github.sha }}
|
|
||||||
cd /tmp/build-${{ github.sha }}
|
|
||||||
git checkout ${{ github.sha }}
|
|
||||||
|
|
||||||
# Login to registry
|
# Login to registry
|
||||||
docker login $REG -u ${{ secrets.REGISTRY_USERNAME }} -p ${{ secrets.REGISTRY_PASSWORD }}
|
docker login $REG -u ${{ secrets.REGISTRY_USERNAME }} -p ${{ secrets.REGISTRY_PASSWORD }}
|
||||||
|
|
||||||
@@ -41,7 +38,3 @@ jobs:
|
|||||||
docker compose pull
|
docker compose pull
|
||||||
docker compose --project-name $APP_NAME down
|
docker compose --project-name $APP_NAME down
|
||||||
docker compose --project-name $APP_NAME up -d --remove-orphans --wait
|
docker compose --project-name $APP_NAME up -d --remove-orphans --wait
|
||||||
|
|
||||||
# Cleanup
|
|
||||||
cd /
|
|
||||||
rm -rf /tmp/build-${{ github.sha }}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user