Skip to content

Commit

Permalink
Cleaned up docker workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
treyrich committed Jul 15, 2024
1 parent d3bb56c commit fd870f7
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 342 deletions.
29 changes: 0 additions & 29 deletions .docker/Dockerfile.armv6

This file was deleted.

29 changes: 0 additions & 29 deletions .docker/Dockerfile.armv7

This file was deleted.

62 changes: 0 additions & 62 deletions .docker/Dockerfile.linux

This file was deleted.

43 changes: 0 additions & 43 deletions .docker/Dockerfile.windows

This file was deleted.

47 changes: 0 additions & 47 deletions .docker/docker-compose.yml

This file was deleted.

35 changes: 0 additions & 35 deletions .docker/ecosystem.config.js

This file was deleted.

63 changes: 7 additions & 56 deletions .github/workflows/docker-publish-njsPC-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,71 +11,22 @@ jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Checkout code from tagyoureit/nodejs-poolcontroller
uses: actions/checkout@v3
with:
repository: tagyoureit/nodejs-poolcontroller
ref: master # or specify the branch or tag to pull from
path: nodejs-poolcontroller

- name: Checkout code from rstrouse/nodejs-poolcontroller-dashpanel
uses: actions/checkout@v3
with:
repository: rstrouse/nodejs-poolcontroller-dashpanel #
ref: master # Specify the branch or tag to pull from
path: nodejs-poolcontroller-dashpanel # Specify the directory to checkout the code into
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push combined Docker image
uses: docker/build-push-action@v4
uses: docker/build-push-action@v6
with:
context: .
file: ./.docker/Dockerfile.linux
push: true
platforms: linux/amd64,linux/arm64,linux/arm/v7
tags: |
tagyoureit/njspc-dp-combined-app:latest

# - name: Build and push njsPC Linux Docker image (x86_64)
# uses: docker/build-push-action@v4
# with:
# context: .
# file: ./.docker/Dockerfile.linux
# push: true
# tags: |
# tagyoureit/nodejs-poolcontroller:latest

# - name: Build and push njsPC-dP Linux Docker image (x86_64)
# uses: docker/build-push-action@v4
# with:
# context: nodejs-poolcontroller-dashpanel
# file: ./.docker/Dockerfile.linux
# push: true
# tags: |
# rstrouse/nodejs-poolcontroller-dashpanel:latest

# - name: Build and push ARMv7 Docker image
# uses: docker/build-push-action@v4
# with:
# context: .
# file: ./.docker/Dockerfile.armv7 # Adjust the path to your ARMv7 Dockerfile
# push: true
# tags: |
# tagyoureit/nodejs-poolcontroller-armv7:latest

# - name: Build and push ARMv6 Docker image
# uses: docker/build-push-action@v4
# with:
# context: .
# file: ./.docker/Dockerfile.armv6 # Adjust the path to your ARMv6 Dockerfile
# push: true
# tags: |
# tagyoureit/nodejs-poolcontroller-armv6:latest
41 changes: 0 additions & 41 deletions .github/workflows/docker-publish-njsPC-windows.yml

This file was deleted.

1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ WORKDIR /app
COPY --chown=node:node --from=build /app .
USER node
ENV NODE_ENV=production
EXPOSE 5150
ENTRYPOINT ["node", "dist/app.js"]

0 comments on commit fd870f7

Please sign in to comment.