Revert multi-layering for speed; push to GHCR as well.

This commit is contained in:
Buster "Silver Eagle" Neece 2021-03-27 10:51:59 -05:00
parent a762bb2969
commit a7ae4cf439
No known key found for this signature in database
GPG Key ID: 6D9E12FF03411F4E
4 changed files with 26 additions and 21 deletions

View File

@ -75,13 +75,12 @@ jobs :
run : |
cp sample.env .env
cp azuracast.sample.env azuracast.env
cp docker-compose.sample.yml docker-compose.yml
docker-compose pull web
cp docker-compose.testing.yml docker-compose.override.yml
docker-compose build web
docker-compose run --rm --user="azuracast" web azuracast_install
- name : Run functional test suite.
@ -136,6 +135,13 @@ jobs :
username : ${{ secrets.DOCKERHUB_USERNAME }}
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
id : tag
run : |
@ -152,5 +158,7 @@ jobs :
context : .
platforms : linux/amd64,linux/arm64
cache-from : type=registry,ref=azuracast/azuracast_web_v2:${{ steps.tag.outputs.TAG }}
tags : azuracast/azuracast_web_v2:${{ steps.tag.outputs.TAG }}
push : true
tags : |
azuracast/azuracast_web_v2:${{ steps.tag.outputs.TAG }}
ghcr.io/azuracast/web_v2:${{ steps.tag.outputs.TAG }}

View File

@ -61,15 +61,3 @@ ENV LANG="en_US.UTF-8" \
# Entrypoint and default command
ENTRYPOINT ["/usr/local/bin/uptime_wait"]
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

View File

@ -1,13 +1,13 @@
version: '2.2'
version : '2.2'
services :
web :
build :
context : .
target : testing
cache_from :
- azuracast/azuracast_web_v2:latest
image : azuracast_cli:latest
environment :
APPLICATION_ENV : 'testing'
build :
context : ./util/docker/testing
cache_from :
- azuracast/azuracast_web_v2:latest
volumes :
- .:/var/azuracast/www

View 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