Skip to content

Commit 3e930a6

Browse files
committed
ci: build and store docker image to github
1 parent 58f5c6b commit 3e930a6

File tree

1 file changed

+13
-36
lines changed

1 file changed

+13
-36
lines changed

.github/workflows/ci.yml

+13-36
Original file line numberDiff line numberDiff line change
@@ -97,42 +97,19 @@ jobs:
9797
name: cypress-screenshots
9898
path: cypress/screenshots
9999

100-
deploy_dev:
101-
needs:
102-
- install_cache
103-
- lint
104-
- cypress
100+
docker:
101+
runs-on: ubuntu-latest
102+
needs: [lint, cypress]
105103
if: github.ref == 'refs/heads/develop'
106-
name: Deploy Dev
107-
runs-on: ${{ matrix.os }}
108-
strategy:
109-
matrix:
110-
os:
111-
- ubuntu-latest
112-
node:
113-
- 20
114-
steps:
115-
- name: Checkout 🛎
116-
uses: actions/checkout@v4
117-
- run: corepack enable
118104

119-
- name: Deploy
120-
uses: appleboy/[email protected]
105+
permissions:
106+
contents: read
107+
packages: write
108+
attestations: write
109+
id-token: write
110+
111+
steps:
112+
- name: Docker Build and Push
113+
uses: cartoway/docker-compose-build-push-action@main
121114
with:
122-
host: ${{secrets.DEPLOY_SSH_HOST}}
123-
username: ${{secrets.DEPLOY_SSH_USERNAME}}
124-
key: ${{secrets.DEPLOY_SSH_KEY_DEV}}
125-
port: 2222
126-
script: |
127-
echo -n 'VIDO: Deployment started at: ' &&
128-
date -u &&
129-
cd ${{secrets.DEPLOY_SSH_PATH}} &&
130-
git fetch &&
131-
git checkout -f origin/develop &&
132-
ruby poi_explode.rb cypress/fixtures/teritorio/references/pois.geojson &&
133-
docker compose build &&
134-
touch vidos-config.json &&
135-
docker compose run --rm vido yarn build-config &&
136-
docker compose up -d &&
137-
echo -n 'VIDO: Deployment completed at: ' &&
138-
date -u
115+
registry_password: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)