This commit is contained in:
parent
ccf124764c
commit
652ccbd8bd
1 changed files with 10 additions and 20 deletions
29
.forgejo/workflows/deploy.yaml
Normal file
29
.forgejo/workflows/deploy.yaml
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
on: [push]
|
||||
jobs:
|
||||
checkout:
|
||||
runs-on: sh
|
||||
name: Checkout
|
||||
steps:
|
||||
- name: Cache repository
|
||||
uses: actions/cache@v4
|
||||
id: cache-repository
|
||||
with:
|
||||
path: repository
|
||||
key: ${{ runner.os }}-repository-${{ github.sha }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-repository-
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
path: repository
|
||||
submodules: recursive
|
||||
-
|
||||
name: Login to Docker Hub
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: code.hohl.cloud
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
- run: docker build -t code.hohl.cloud/a11yist:latest --target production .
|
||||
- run: docker compose -f /services/a11yist/docker-compose.yml up -d
|
||||
- run: docker push code.hohl.cloud/a11yist:latest
|
||||
Loading…
Add table
Add a link
Reference in a new issue