diff --git a/.github/workflows/docker-images.yml b/.github/workflows/docker-images.yml new file mode 100644 index 0000000000..12db1f5fd7 --- /dev/null +++ b/.github/workflows/docker-images.yml @@ -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