custom build / deploy
Some checks failed
ci / docker (push) Failing after 5s

This commit is contained in:
david 2024-07-22 04:19:55 +02:00
parent ccf124764c
commit 652ccbd8bd

View file

@ -1,12 +1,7 @@
on: [push]
jobs:
test:
name: Test
runs-on: docker
steps:
- run: echo All Good
checkout:
runs-on: docker
runs-on: sh
name: Checkout
steps:
- name: Cache repository
@ -22,18 +17,13 @@ jobs:
with:
path: repository
submodules: recursive
build:
runs-on: docker
name: Build
steps:
- name: Cache repository
uses: actions/cache@v4
id: cache-repository
-
name: Login to Docker Hub
uses: docker/login-action@v3
with:
path: repository
key: ${{ runner.os }}-repository-${{ github.sha }}
restore-keys: |
${{ runner.os }}-repository-
- run: echo $PWD && ls -la && cd repository && docker build .
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