-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: build and store docker image to github
- Loading branch information
Showing
2 changed files
with
13 additions
and
36 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -97,42 +97,18 @@ jobs: | |
name: cypress-screenshots | ||
path: cypress/screenshots | ||
|
||
deploy_dev: | ||
needs: | ||
- install_cache | ||
- lint | ||
- cypress | ||
docker: | ||
runs-on: ubuntu-latest | ||
needs: [lint, cypress] | ||
if: github.ref == 'refs/heads/develop' | ||
name: Deploy Dev | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: | ||
- ubuntu-latest | ||
node: | ||
- 20 | ||
steps: | ||
- name: Checkout 🛎 | ||
uses: actions/checkout@v4 | ||
- run: corepack enable | ||
|
||
- name: Deploy | ||
uses: appleboy/[email protected] | ||
permissions: | ||
contents: read | ||
packages: write | ||
id-token: write | ||
|
||
steps: | ||
- name: Docker Build and Push | ||
uses: cartoway/docker-compose-build-push-action@main | ||
with: | ||
host: ${{secrets.DEPLOY_SSH_HOST}} | ||
username: ${{secrets.DEPLOY_SSH_USERNAME}} | ||
key: ${{secrets.DEPLOY_SSH_KEY_DEV}} | ||
port: 2222 | ||
script: | | ||
echo -n 'VIDO: Deployment started at: ' && | ||
date -u && | ||
cd ${{secrets.DEPLOY_SSH_PATH}} && | ||
git fetch && | ||
git checkout -f origin/develop && | ||
ruby poi_explode.rb cypress/fixtures/teritorio/references/pois.geojson && | ||
docker compose build && | ||
touch vidos-config.json && | ||
docker compose run --rm vido yarn build-config && | ||
docker compose up -d && | ||
echo -n 'VIDO: Deployment completed at: ' && | ||
date -u | ||
registry_password: ${{ secrets.GITHUB_TOKEN }} |
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