2024-07-21 23:55:43 +02:00
|
|
|
on: [push]
|
|
|
|
|
jobs:
|
2024-07-22 00:28:46 +02:00
|
|
|
checkout:
|
2024-07-22 04:19:55 +02:00
|
|
|
runs-on: sh
|
2024-07-22 00:28:46 +02:00
|
|
|
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
|
2024-07-22 00:32:46 +02:00
|
|
|
submodules: recursive
|
2024-07-22 04:23:11 +02:00
|
|
|
- name: Login to Docker Hub
|
2024-07-22 04:19:55 +02:00
|
|
|
uses: docker/login-action@v3
|
2024-07-22 00:36:28 +02:00
|
|
|
with:
|
2024-07-22 04:19:55 +02:00
|
|
|
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
|