Change deployement actions

This commit is contained in:
TheThomaas 2023-05-24 21:43:21 +02:00
parent 278059d927
commit 1761e9355e
2 changed files with 10 additions and 11 deletions

View file

@ -8,8 +8,6 @@ on:
jobs: jobs:
deploy: deploy:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container:
image: catthehacker/ubuntu:act-latest
steps: steps:
- name: Checkout repository - name: Checkout repository
@ -20,18 +18,18 @@ jobs:
npm ci npm ci
npm run production npm run production
- name: Log in to Docker registry # - name: Log in to Docker registry
uses: docker/login-action@v2 # uses: docker/login-action@v2
with: # with:
registry: gitea.local.thethomaas.net # registry: gitea.local.thethomaas.net
username: ${{ secrets.DOCKER_USERNAME }} # username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }} # password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build Docker image - name: Build Docker image
run: docker build -t gitea.local.thethomaas.net/TheThomaas/11ty-workflow-example:latest --build-arg SITE_DIRECTORY=dist . run: docker build -t gitea.local.thethomaas.net/TheThomaas/11ty-workflow-example:latest --build-arg SITE_DIRECTORY=dist .
- name: Push Docker image # - name: Push Docker image
run: docker push gitea.local.thethomaas.net/TheThomaas/11ty-workflow-example:latest # run: docker push gitea.local.thethomaas.net/TheThomaas/11ty-workflow-example:latest
- name: Set up Docker Compose - name: Set up Docker Compose
uses: https://github.com/isbang/compose-action@v1.4.1 uses: https://github.com/isbang/compose-action@v1.4.1

View file

@ -2,7 +2,8 @@ version: '3'
services: services:
dev: dev:
image: gitea.local.thethomaas.net/TheThomaas/11ty-workflow-example image: TheThomaas/11ty-workflow-example
# image: gitea.local.thethomaas.net/TheThomaas/11ty-workflow-example
ports: ports:
- '8086:80' - '8086:80'
volumes: volumes: