Skip to content

update docker actions repo #45

update docker actions repo

update docker actions repo #45

name: Publish Docker Image - Ubuntu
on:
push:
branches:
- master
- docker
workflow_dispatch:
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: 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
with:
context: .
file: ./.docker/Dockerfile.linux
push: true
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