Skip to content

Commit

Permalink
feat: add auto build & push docker images by github actions (#122)
Browse files Browse the repository at this point in the history
* feat: add auto build & push docker images by github actions

* chore: update triggering method
  • Loading branch information
skyoct authored Jun 2, 2022
1 parent 8bd2abc commit fe313b3
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/docker-images.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Build Docker

on:
push:
tags:
- v*

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [16.x]
steps:
- name: Login in Docker Hub
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Clone Code
uses: actions/checkout@v3

- name: Use Node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Install Package
run: npm install

- name: Build & Push
run: node ./scripts/builder.js all -l -p

0 comments on commit fe313b3

Please sign in to comment.