Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 2061bb29c0 | |||
| fe774f8009 | |||
| 2021399a10 | |||
| 2cefdaa85d | |||
| db0cde6497 |
@@ -61,6 +61,8 @@ jobs:
|
|||||||
username = "${{ secrets.DOCKER_USERNAME }}"
|
username = "${{ secrets.DOCKER_USERNAME }}"
|
||||||
password = "${{ secrets.DOCKER_PASSWORD }}"
|
password = "${{ secrets.DOCKER_PASSWORD }}"
|
||||||
|
|
||||||
|
- run: ls -lha
|
||||||
|
|
||||||
- name: Build and Push Docker latest Image
|
- name: Build and Push Docker latest Image
|
||||||
if: gitea.ref == 'refs/heads/main'
|
if: gitea.ref == 'refs/heads/main'
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
|
|||||||
+8
-4
@@ -1,8 +1,10 @@
|
|||||||
FROM docker.hnrx.net/alpine:latest
|
FROM docker.hnrx.net/alpine:latest
|
||||||
|
|
||||||
RUN mkdir /config
|
# Create application directory
|
||||||
|
RUN mkdir -p /app/config
|
||||||
|
|
||||||
WORKDIR /root/
|
# Set working directory
|
||||||
|
WORKDIR /app/
|
||||||
|
|
||||||
# Copy the compiled binary from the builder stage
|
# Copy the compiled binary from the builder stage
|
||||||
COPY manage-servers .
|
COPY manage-servers .
|
||||||
@@ -10,8 +12,10 @@ COPY manage-servers .
|
|||||||
# Copy the index.html file for the web server
|
# Copy the index.html file for the web server
|
||||||
COPY index.html .
|
COPY index.html .
|
||||||
|
|
||||||
# Copy the servers.json file
|
RUN ls -la /app/
|
||||||
# COPY servers.json .
|
|
||||||
|
# Make the binary executable
|
||||||
|
RUN chmod +x ./manage-servers
|
||||||
|
|
||||||
# Expose the port the web server listens on
|
# Expose the port the web server listens on
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
|
|||||||
+2
-2
@@ -2,7 +2,7 @@ version: '3.8'
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
manage-servers:
|
manage-servers:
|
||||||
image: git.hnrx.net/hnrx/manage-servers:v0.1.0
|
image: git.hnrx.net/hnrx/manage-servers:v0.1.3
|
||||||
container_name: manage-servers
|
container_name: manage-servers
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
labels:
|
labels:
|
||||||
@@ -14,7 +14,7 @@ services:
|
|||||||
- "traefik.http.routers.manage-servers.tls.certresolver=cloudflare"
|
- "traefik.http.routers.manage-servers.tls.certresolver=cloudflare"
|
||||||
- "traefik.http.services.manage-servers.loadbalancer.server.port=8080"
|
- "traefik.http.services.manage-servers.loadbalancer.server.port=8080"
|
||||||
volumes:
|
volumes:
|
||||||
- /volume1/docker-data/manage-servers:/config
|
- /volume1/docker-data/manage-servers:/app/config
|
||||||
networks:
|
networks:
|
||||||
- my-container-macvlan-200
|
- my-container-macvlan-200
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user