commit 00475a34d2f458c786a38d40f8eea73d07ce8e40 Author: Benjamin Palko Date: Fri Mar 21 21:30:10 2025 -0400 docker and deploy diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..d0079f0 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,25 @@ +name: Deployment +on: + push: + branches: + - main +jobs: + install: + name: Install + runs-on: ubuntu-22.04 + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + registry: ${{ env.GITHUB_SERVER_URL }} + username: ${{ env.GITHUB_REPOSITORY_OWNER }} + password: ${{ secrets.PACKAGE_TOKEN }} + - name: Build and push + uses: docker/build-push-action@v6 + with: + push: true + tags: git.palko.ca/${{ env.GITHUB_REPOSITORY }}:latest diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..a75e285 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ +FROM ubuntu:24.04 + +RUN apt-get update + +RUN apt-get install -y wget software-properties-common gnupg2 winbind xvfb + +RUN dpkg --add-architecture i386 +RUN wget -nc https://dl.winehq.org/wine-builds/winehq.key +RUN apt-key add winehq.key +RUN add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ focal main' +RUN apt-get update +RUN apt-get install -y winehq-stable + +RUN apt-get install -y winetricks + +RUN apt-get clean -y +RUN apt-get autoremove -y