Skip to content

Commit e916fe3

Browse files
committed
Add devtools image to cron build
1 parent 9c1a440 commit e916fe3

File tree

3 files changed

+36
-1
lines changed

3 files changed

+36
-1
lines changed

.github/workflows/cron.yml

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,37 @@ jobs:
3939
tags: |
4040
lycheeorg/lychee:testing-${{ github.run_id }}
4141
42+
devtools:
43+
runs-on: ubuntu-latest
44+
steps:
45+
-
46+
name: Checkout
47+
uses: actions/checkout@v3
48+
-
49+
name: Set up QEMU
50+
uses: docker/setup-qemu-action@v2
51+
-
52+
name: Set up Docker Buildx
53+
uses: docker/setup-buildx-action@v2
54+
-
55+
name: Login to DockerHub
56+
uses: docker/login-action@v2
57+
with:
58+
username: ${{ secrets.DOCKERHUB_USERNAME }}
59+
password: ${{ secrets.DOCKERHUB_TOKEN }}
60+
-
61+
name: Build and push
62+
uses: docker/build-push-action@v3
63+
with:
64+
context: .
65+
file: ./Dockerfile
66+
platforms: linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64
67+
push: true
68+
build-args: |
69+
COMPOSER_NO_DEV=0
70+
tags: |
71+
lycheeorg/lychee:testing-${{ github.run_id }}-devtools
72+
4273
default-env:
4374
needs: multiarch
4475
runs-on: ubuntu-latest
@@ -160,7 +191,7 @@ jobs:
160191
run: 'docker-compose up -d && sleep 45 && docker-compose ps && curl -sSw "%{stderr}%{http_code}" http://localhost:90/ > /dev/null && curl -f http://localhost:90/'
161192

162193
retag:
163-
needs: [default-env, sqlite, sqlite2, mysql, postgres, docker-compose]
194+
needs: [default-env, sqlite, sqlite2, mysql, postgres, docker-compose, devtools]
164195
runs-on: ubuntu-latest
165196
container:
166197
image: gcr.io/go-containerregistry/crane:debug
@@ -172,3 +203,4 @@ jobs:
172203
crane tag lycheeorg/lychee:testing-${{ github.run_id }} dev
173204
crane tag lycheeorg/lychee:testing-${{ github.run_id }} nightly
174205
crane cp lycheeorg/lychee:testing-${{ github.run_id }} lycheeorg/lychee-laravel:dev
206+
crane tag lycheeorg/lychee:testing-${{ github.run_id }}-devtools devtools

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ ENV PHP_TZ=UTC
1212
# Arguments
1313
# To use the latest Lychee release instead of master pass `--build-arg TARGET=release` to `docker build`
1414
ARG TARGET=dev
15+
# To install composer development dependencies, pass `--build-arg COMPOSER_NO_DEV=0` to `docker build`
16+
ARG COMPOSER_NO_DEV=1
1517

1618
# Install base dependencies, add user and group, clone the repo and install php libraries
1719
RUN \

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ The following tags are available :
3333
* `latest`: Latest Lychee release
3434
* `v[NUMBER]`: Stable version tag for a Lychee release
3535
* `nightly` (also `dev`): Current master branch tag (Lychee operates on a stable master, so this should usually be safe)
36+
* `devtools`: As above, but includes development dependencies
3637
* `testing`: Tag for testing new branches and pull requests. Designed for internal use by LycheeOrg.
3738

3839
## Setup

0 commit comments

Comments
 (0)