👷 push on docker hub
This commit is contained in:
35
.github/workflows/main.yml
vendored
35
.github/workflows/main.yml
vendored
@@ -18,7 +18,6 @@ jobs:
|
||||
- run: yarn type
|
||||
- run: yarn lint
|
||||
- run: yarn test --ci
|
||||
- run: yarn build:action
|
||||
|
||||
test-benchmark:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -53,11 +52,6 @@ jobs:
|
||||
ls -l ${{ steps.snake-gif.outputs.gif_out_path }}
|
||||
test -f ${{ steps.snake-gif.outputs.gif_out_path }}
|
||||
|
||||
- uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: output
|
||||
path: ${{ steps.snake-gif.outputs.gif_out_path }}
|
||||
|
||||
- uses: crazy-max/ghaction-github-pages@v2.1.3
|
||||
with:
|
||||
target_branch: output
|
||||
@@ -86,3 +80,32 @@ jobs:
|
||||
build_dir: packages/demo/dist
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.MY_GITHUB_TOKEN_GH_PAGES }}
|
||||
|
||||
build-docker-image:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2.3.3
|
||||
- uses: actions/setup-node@v1.4.4
|
||||
with:
|
||||
node-version: 14
|
||||
|
||||
- uses: bahmutov/npm-install@v1.4.3
|
||||
|
||||
- run: yarn build:action
|
||||
|
||||
- uses: docker/setup-qemu-action@v1
|
||||
|
||||
- uses: docker/setup-buildx-action@v1
|
||||
|
||||
- uses: docker/login-action@v1
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
|
||||
- uses: docker/build-push-action@v2
|
||||
id: docker_build
|
||||
with:
|
||||
push: github.ref == 'refs/heads/master'
|
||||
tags: platane/snk:latest
|
||||
file: packages/action/Dockerfile
|
||||
context: packages/action
|
||||
|
||||
Reference in New Issue
Block a user