Skip to content

Add monthly budget view (#118) #23

Add monthly budget view (#118)

Add monthly budget view (#118) #23

name: Build and Publish InfraWallet Docker Image
on:
release:
types: [published]
push:
branches:
- main
paths-ignore:
- '**/docs/**'
- '**.md'
- '.github/**'
env:
DOCKER_HUB_ORG: opensourceelectrolux
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [18.x]
steps:
- name: Harden Runner
uses: step-security/harden-runner@a4aa98b93cab29d9b1101a6143fb8bce00e2eac4 # v2.7.1
with:
egress-policy: audit
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- name: use node.js ${{ matrix.node-version }}
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: ${{ matrix.node-version }}
registry-url: https://registry.npmjs.org/ # Needed for auth
- name: yarn install
run: |
yarn install
- name: yarn tsc
run: |
yarn tsc
- name: yarn build
run: yarn build:backend
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
platforms: linux/amd64,linux/arm64
push: true
context: .
file: ./packages/backend/Dockerfile
tags: |
${{ env.DOCKER_HUB_ORG }}/infrawallet:latest
${{ env.DOCKER_HUB_ORG }}/infrawallet:${{ github.sha }}
${{ github.event.release.tag_name != '' && format('{0}/infrawallet:{1}', env.DOCKER_HUB_ORG, github.event.release.tag_name) || '' }}