Skip to content

Commit

Permalink
chore: push Docker image on push to master
Browse files Browse the repository at this point in the history
  • Loading branch information
michael1011 committed Oct 10, 2023
1 parent 9004cda commit 656836b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ name: Docker

on:
workflow_dispatch:
push:
branches: ["master"]

jobs:
# Push image to GitHub Packages
push:
runs-on: ubuntu-latest

Expand All @@ -21,12 +22,14 @@ jobs:
with:
install: true

- name: Login to GitHub Container Registry
uses: docker/login-action@v2
- name: Log in to Docker Hub
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build regtest image
run: ./docker/build.py buildx regtest

- name: Build image
run: ./docker/build.py buildx --organisation ghcr.io/boltzexchange regtest
- name: Build backend image
run: ./docker/build.py buildx boltz
5 changes: 1 addition & 4 deletions docker/boltz/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,7 @@ WORKDIR /boltz-backend
RUN git checkout ${VERSION}
RUN npm install -g npm

# Remove dependency that is not needed for the build and unavailable on ARM64
RUN sed -i "/grpc-tools/d" package.json

RUN npm install
RUN npm ci
RUN npm run compile

FROM node:${NODE_VERSION} AS final
Expand Down

0 comments on commit 656836b

Please sign in to comment.