mirror of
https://github.com/AzuraCast/AzuraCast.git
synced 2024-06-14 13:16:37 +00:00
Revert multi-layering for speed; push to GHCR as well.
This commit is contained in:
parent
a762bb2969
commit
a7ae4cf439
14
.github/workflows/default.yml
vendored
14
.github/workflows/default.yml
vendored
|
@ -75,13 +75,12 @@ jobs :
|
||||||
run : |
|
run : |
|
||||||
cp sample.env .env
|
cp sample.env .env
|
||||||
cp azuracast.sample.env azuracast.env
|
cp azuracast.sample.env azuracast.env
|
||||||
|
|
||||||
cp docker-compose.sample.yml docker-compose.yml
|
cp docker-compose.sample.yml docker-compose.yml
|
||||||
docker-compose pull web
|
docker-compose pull web
|
||||||
|
|
||||||
cp docker-compose.testing.yml docker-compose.override.yml
|
cp docker-compose.testing.yml docker-compose.override.yml
|
||||||
|
|
||||||
docker-compose build web
|
docker-compose build web
|
||||||
|
|
||||||
docker-compose run --rm --user="azuracast" web azuracast_install
|
docker-compose run --rm --user="azuracast" web azuracast_install
|
||||||
|
|
||||||
- name : Run functional test suite.
|
- name : Run functional test suite.
|
||||||
|
@ -136,6 +135,13 @@ jobs :
|
||||||
username : ${{ secrets.DOCKERHUB_USERNAME }}
|
username : ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password : ${{ secrets.DOCKERHUB_TOKEN }}
|
password : ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name : Login to GitHub Container Registry
|
||||||
|
uses : docker/login-action@v1
|
||||||
|
with :
|
||||||
|
registry : ghcr.io
|
||||||
|
username : ${{ github.repository_owner }}
|
||||||
|
password : ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name : Determine Tag Name
|
- name : Determine Tag Name
|
||||||
id : tag
|
id : tag
|
||||||
run : |
|
run : |
|
||||||
|
@ -152,5 +158,7 @@ jobs :
|
||||||
context : .
|
context : .
|
||||||
platforms : linux/amd64,linux/arm64
|
platforms : linux/amd64,linux/arm64
|
||||||
cache-from : type=registry,ref=azuracast/azuracast_web_v2:${{ steps.tag.outputs.TAG }}
|
cache-from : type=registry,ref=azuracast/azuracast_web_v2:${{ steps.tag.outputs.TAG }}
|
||||||
tags : azuracast/azuracast_web_v2:${{ steps.tag.outputs.TAG }}
|
|
||||||
push : true
|
push : true
|
||||||
|
tags : |
|
||||||
|
azuracast/azuracast_web_v2:${{ steps.tag.outputs.TAG }}
|
||||||
|
ghcr.io/azuracast/web_v2:${{ steps.tag.outputs.TAG }}
|
||||||
|
|
12
Dockerfile
12
Dockerfile
|
@ -61,15 +61,3 @@ ENV LANG="en_US.UTF-8" \
|
||||||
# Entrypoint and default command
|
# Entrypoint and default command
|
||||||
ENTRYPOINT ["/usr/local/bin/uptime_wait"]
|
ENTRYPOINT ["/usr/local/bin/uptime_wait"]
|
||||||
CMD ["/usr/local/bin/my_init"]
|
CMD ["/usr/local/bin/my_init"]
|
||||||
|
|
||||||
# Test image
|
|
||||||
FROM base AS testing
|
|
||||||
|
|
||||||
RUN apt-get update \
|
|
||||||
&& apt-get install -q -y php7.4-xdebug
|
|
||||||
|
|
||||||
ENV PATH="${PATH}:/var/azuracast/.composer/vendor/bin" \
|
|
||||||
APPLICATION_ENV="testing"
|
|
||||||
|
|
||||||
# Production image
|
|
||||||
FROM base AS prod
|
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
version: '2.2'
|
version : '2.2'
|
||||||
|
|
||||||
services :
|
services :
|
||||||
web :
|
web :
|
||||||
build :
|
image : azuracast_cli:latest
|
||||||
context : .
|
|
||||||
target : testing
|
|
||||||
cache_from :
|
|
||||||
- azuracast/azuracast_web_v2:latest
|
|
||||||
environment :
|
environment :
|
||||||
APPLICATION_ENV : 'testing'
|
APPLICATION_ENV : 'testing'
|
||||||
|
build :
|
||||||
|
context : ./util/docker/testing
|
||||||
|
cache_from :
|
||||||
|
- azuracast/azuracast_web_v2:latest
|
||||||
volumes :
|
volumes :
|
||||||
- .:/var/azuracast/www
|
- .:/var/azuracast/www
|
||||||
|
|
9
util/docker/testing/Dockerfile
Normal file
9
util/docker/testing/Dockerfile
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
FROM azuracast/azuracast_web_v2:latest
|
||||||
|
|
||||||
|
RUN apt-get update \
|
||||||
|
&& apt-get install -q -y php7.4-xdebug
|
||||||
|
|
||||||
|
ENV PATH="${PATH}:/var/azuracast/.composer/vendor/bin" \
|
||||||
|
APPLICATION_ENV="testing"
|
||||||
|
|
||||||
|
USER root
|
Loading…
Reference in New Issue
Block a user