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

View file

@ -2,7 +2,8 @@ version: '3'
services:
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:
- '8086:80'
volumes: