Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
lxRbckl committed Jun 1, 2024
1 parent 62eed6a commit 1098084
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 1 deletion.
54 changes: 54 additions & 0 deletions .github/workflows/update.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Build and Push Docker Image


on:
push:
branches:

- V1


jobs:
build:
runs-on: ubuntu-latest
env:

project: "project-aclg"
architecture: "linux/arm64"

steps:

- name: Evaluate Commit Message
run: |
commitMessage="${{ github.event.head_commit.message }}";
if [ "$commitMessage" != "Update" ]; then
echo "Cancelling Workflow.";
exit 1;
fi
- name: Checkout Repository
uses: actions/checkout@v4

- name: Setup QEMU
uses: docker/setup-qemu-action@v3

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

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

- name: Build and Push Docker Image
uses: docker/build-push-action@v5
with:
context: .
push: true
platforms: ${{ env.architecture }}
tags: ${{ secrets.DOCKERHUBUSERNAME }}/${{ env.project }}:latest
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# official Python image as the base image
FROM python:3.8-slim

# referencing docker compose (find wiki) #
ENV PORT ${PORT}

WORKDIR /app
COPY . .
RUN pip install -r requirements.txt
EXPOSE 8060

# run dash application
CMD ["python3", "main.py"]
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@
objCallbacks.register()
application.layout = objLayout.layout

application.run(debug = True, port = 8059)
application.run(host = '0.0.0.0', port = 8060)

0 comments on commit 1098084

Please sign in to comment.