Skip to content

Commit

Permalink
Merge pull request #39 from ufosc/feature/auth-token
Browse files Browse the repository at this point in the history
add new gh workflow push docker images
  • Loading branch information
IkeHunter authored Sep 8, 2024
2 parents f9c1344 + 87e7c93 commit ce23ebc
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 4 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/push-docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Push Docker Images
on:
push:
branches:
- main

jobs:
push:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Login to Docker
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_REGISTRY_USER }}
password: ${{ secrets.DOCKER_REGISTRY_PASS }}
- name: Build and Push Images
run: |
docker buildx create --use
docker buildx build --platform=linux/amd64,linux/arm64 -t ikehunter5/jukebox-server:latest -f ./server/Dockerfile . --push
docker buildx build --platform=linux/amd64,linux/arm64 -t ikehunter5/jukebox-websocket:latest -f ./websocket/Dockerfile . --push
docker buildx build --platform=linux/amd64,linux/arm64 -t ikehunter5/jukebox-proxy:latest ./proxy --push
5 changes: 3 additions & 2 deletions docker-compose.network.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ services:
server:
restart: always
build:
context: ./
dockerfile: ./server/Dockerfile
context: .
dockerfile: ./server.Dockerfile
# dockerfile: ./server/Dockerfile
container_name: server-jbx
environment:
- NODE_ENV=network
Expand Down
2 changes: 1 addition & 1 deletion proxy/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ RUN mkdir -p /vol/client && \

USER nginx

EXPOSE 80
EXPOSE 8080
VOLUME /vol/client

CMD ["/entrypoint.sh"]
2 changes: 1 addition & 1 deletion server/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Development Image
# Server Image
################################################
FROM node:20-bookworm

Expand Down

0 comments on commit ce23ebc

Please sign in to comment.