Skip to content

fix login for ark

fix login for ark #16

Workflow file for this run

name: Push
on:
push:
branches:
env:
REGISTRY: ghcr.io
DB_SHARD_1_INTERNAL_HOST: clapp-db-shard-1
DB_SHARD_1_INTERNAL_PORT: 3306
DB_SHARD_2_INTERNAL_HOST: clapp-db-shard-2
DB_SHARD_2_INTERNAL_PORT: 3306
jobs:
build:
runs-on: ubuntu-latest
container:
image: ghcr.io/clusterlean/ark:main
steps:
- uses: actions/checkout@v3
- uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: robinraju/[email protected]
with:
repository: "clusterlean/clapp"
latest: true
fileName: "clapp"
token: ${{ secrets.ADMIN_GITHUB_TOKEN }}
- uses: actions/setup-node@v3
with:
node-version: 18
registry-url: 'https://npm.pkg.github.com'
- name: Clapp init
env:
DOCKER_NETWORK_NAME: ${{ job.container.network }}
run: |
docker pull mysql:8.0.33
docker pull redis:7.0.11
docker pull ghcr.io/clusterlean/ark:main
chmod +x ./clapp
./clapp init
docker ps
- name: Build and Test
env:
REDIS_NATMAP_DISABLED: true
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
npm ci
npm run fmt:check
npm run lint
npm run build
npm run test
./clapp migrate down
tar -czvf node_modules.tar.gz node_modules
tar -czvf lib.tar.gz lib
- uses: actions/upload-artifact@v3
with:
path: |
lib.tar.gz
node_modules.tar.gz
retention-days: 1
- run: ./clapp deinit -v