mirror of
https://github.com/maputnik/editor.git
synced 2026-07-25 23:37:27 +00:00
Update github workflow
This commit is contained in:
@@ -2,7 +2,7 @@ name: deploy
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ main ]
|
branches: [ globe ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy-pages:
|
deploy-pages:
|
||||||
@@ -29,23 +29,23 @@ jobs:
|
|||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
publish_dir: dist
|
publish_dir: dist
|
||||||
|
|
||||||
# publish docker to GitHub registry
|
# # publish docker to GitHub registry
|
||||||
deploy-docker:
|
# deploy-docker:
|
||||||
name: deploy/docker
|
# name: deploy/docker
|
||||||
runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
|
|
||||||
if: ${{ github.event_name == 'push' }}
|
# if: ${{ github.event_name == 'push' }}
|
||||||
|
|
||||||
strategy:
|
# strategy:
|
||||||
fail-fast: false
|
# fail-fast: false
|
||||||
|
|
||||||
steps:
|
# steps:
|
||||||
- name: Login to GitHub Container Registry
|
# - name: Login to GitHub Container Registry
|
||||||
uses: docker/login-action@v3
|
# uses: docker/login-action@v3
|
||||||
with:
|
# with:
|
||||||
registry: ghcr.io
|
# registry: ghcr.io
|
||||||
username: ${{ github.actor }}
|
# username: ${{ github.actor }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
# password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- uses: actions/checkout@v4
|
# - uses: actions/checkout@v4
|
||||||
- run: docker build -t ghcr.io/maplibre/maputnik:main .
|
# - run: docker build -t ghcr.io/maplibre/maputnik:main .
|
||||||
- run: docker push ghcr.io/maplibre/maputnik:main
|
# - run: docker push ghcr.io/maplibre/maputnik:main
|
||||||
|
|||||||
Reference in New Issue
Block a user