mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-23 07:13:08 +02:00
f5985d53e5
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.2.0 to 3.5.3. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3.2.0...v3.5.3) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
30 lines
834 B
YAML
30 lines
834 B
YAML
---
|
|
name: Dockle
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
- develop
|
|
pull_request:
|
|
|
|
jobs:
|
|
dockle:
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
DOCKER_CONTENT_TRUST: 1
|
|
steps:
|
|
- uses: actions/checkout@v3.5.3
|
|
- run: |
|
|
curl -L -o dockle.deb "https://github.com/goodwithtech/dockle/releases/download/v0.4.10/dockle_0.4.10_Linux-64bit.deb"
|
|
sudo dpkg -i dockle.deb
|
|
- run: |
|
|
cp .config/docker_example.env .config/docker.env
|
|
cp ./docker-compose.yml.example ./docker-compose.yml
|
|
- run: |
|
|
docker compose up -d web
|
|
docker tag "$(docker compose images web | awk 'OFS=":" {print $4}' | tail -n +2)" misskey-web:latest
|
|
- run: |
|
|
cmd="dockle --exit-code 1 misskey-web:latest ${image_name}"
|
|
echo "> ${cmd}"
|
|
eval "${cmd}"
|