Dockerize waku-frontend (#29) #19
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Push Image (master) | |
on: | |
push: | |
branches: | |
- 'master' | |
jobs: | |
docker: | |
runs-on: ubuntu-latest | |
steps: | |
- id: commit | |
uses: pr-mpt/actions-commit-hash@v2 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Login to Docker Hub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Checkout to waku-frontend | |
uses: actions/checkout@v3 | |
with: | |
repository: waku-org/waku-frontend | |
- name: Setup node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
registry-url: "https://registry.npmjs.org" | |
- name: Setup npm | |
uses: bahmutov/npm-install@v1 | |
- name: Artefact build | |
run: npm run build | |
- name: Build and push | |
uses: docker/build-push-action@v3 | |
with: | |
context: . | |
push: true | |
# temporal, migrate to waku-org | |
tags: alrevuelta/waku-frontend:${{ steps.commit.outputs.short }} , alrevuelta/waku-frontend:latest | |
build-args: BUILD_VERSION=${{ steps.commit.outputs.hash }} |