This commit is contained in:
parent
ccf124764c
commit
652ccbd8bd
1 changed files with 10 additions and 20 deletions
|
|
@ -1,12 +1,7 @@
|
||||||
on: [push]
|
on: [push]
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
|
||||||
name: Test
|
|
||||||
runs-on: docker
|
|
||||||
steps:
|
|
||||||
- run: echo All Good
|
|
||||||
checkout:
|
checkout:
|
||||||
runs-on: docker
|
runs-on: sh
|
||||||
name: Checkout
|
name: Checkout
|
||||||
steps:
|
steps:
|
||||||
- name: Cache repository
|
- name: Cache repository
|
||||||
|
|
@ -22,18 +17,13 @@ jobs:
|
||||||
with:
|
with:
|
||||||
path: repository
|
path: repository
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
build:
|
-
|
||||||
runs-on: docker
|
name: Login to Docker Hub
|
||||||
name: Build
|
uses: docker/login-action@v3
|
||||||
steps:
|
|
||||||
- name: Cache repository
|
|
||||||
uses: actions/cache@v4
|
|
||||||
id: cache-repository
|
|
||||||
with:
|
with:
|
||||||
path: repository
|
registry: code.hohl.cloud
|
||||||
key: ${{ runner.os }}-repository-${{ github.sha }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
restore-keys: |
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
${{ runner.os }}-repository-
|
- run: docker build -t code.hohl.cloud/a11yist:latest --target production .
|
||||||
- run: echo $PWD && ls -la && cd repository && docker build .
|
- 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