Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add auto build & push docker images by github actions #122

Merged
merged 2 commits into from
Jun 2, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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