Skip to content

Commit

Permalink
Try to use remote layer cache
Browse files Browse the repository at this point in the history
  • Loading branch information
DerouineauNicolas committed Jun 25, 2024
1 parent f7389ce commit dde1ddf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 31 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,12 @@ jobs:
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
-
name: Pull old base image
name: build
run: |
docker image pull webmultimedia/http-streaming-server-baseimage:dev
-
name: Build and export to Docker
uses: docker/build-push-action@v3
with:
context: .
file: ./backend/Dockerfile.baseimage
push: true
tags: webmultimedia/http-streaming-server-baseimage:dev
docker image build -f ./backend/Dockerfile.baseimage -t webmultimedia/http-streaming-server-baseimage:dev .
docker image push webmultimedia/http-streaming-server-baseimage:dev
build-app:
needs: build-baselayer
runs-on: ubuntu-latest
Expand Down
25 changes: 3 additions & 22 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,30 +25,11 @@ jobs:
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
-
name: Pull old base image
name: build
run: |
docker image pull webmultimedia/http-streaming-server-baseimage:master
-
name: Build and export to Docker
uses: docker/build-push-action@v3
with:
context: .
file: ./backend/Dockerfile.baseimage
push: true
tags: webmultimedia/http-streaming-server-baseimage:master
-
name: Test Backend
run: |
cp -r tests/* Videos/
docker-compose -f docker-compose-prod.yml run --rm web ./wait-for-it.sh db:5432 -- python3 manage.py test
-
name: Build and push
uses: docker/build-push-action@v3
with:
context: .
file: ./backend/Dockerfile.prod
push: true
tags: webmultimedia/http-streaming-server:master
docker image build -f ./backend/Dockerfile.baseimage -t webmultimedia/http-streaming-server-baseimage:master .
docker image push webmultimedia/http-streaming-server-baseimage:master
build-app:
needs: build-baselayer
runs-on: ubuntu-latest
Expand Down

0 comments on commit dde1ddf

Please sign in to comment.