Skip to content

Commit

Permalink
Updates base compose file. Updates test_and_build gh action to publis…
Browse files Browse the repository at this point in the history
…h fakes3 dev.
  • Loading branch information
clpetersonucf committed Oct 29, 2024
1 parent 524d2a5 commit d9477f4
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
21 changes: 10 additions & 11 deletions .github/workflows/test_and_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,30 +39,29 @@ jobs:
- name: Build App and Webserver Images
run: |
cd docker
docker compose build --no-cache webserver app
docker compose build --no-cache webserver app fakes3
- name: Push Dev App and Webserver Images
if: ${{ startsWith(github.ref, 'refs/tags/v') && (contains(github.ref, '-alpha') || contains(github.ref, '-rc')) }}
run: |
docker tag ucfopen/materia:app-dev ghcr.io/${{ github.repository_owner }}/materia:app-dev
docker tag ucfopen/materia:webserver-dev ghcr.io/${{ github.repository_owner }}/materia:webserver-dev
docker push ghcr.io/${{ github.repository_owner }}/materia:app-dev
docker push ghcr.io/${{ github.repository_owner }}/materia:webserver-dev
docker push ghcr.io/${{ github.repository_owner }}/materia:fake-s3-dev
- name: Push Stable App and Webserver Images
if: ${{ startsWith(github.ref, 'refs/tags/v') && !contains(github.ref, '-alpha') && !contains(github.ref, '-rc') }}
run: |
docker tag ucfopen/materia:app-dev ghcr.io/${{ github.repository_owner }}/materia:app-stable
docker tag ucfopen/materia:webserver-dev ghcr.io/${{ github.repository_owner }}/materia:webserver-stable
docker push ghcr.io/${{ github.repository_owner }}/materia:app-dev
docker push ghcr.io/${{ github.repository_owner }}/materia:webserver-dev
docker tag ghcr.io/${{ github.repository_owner }}/materia:app-dev ghcr.io/${{ github.repository_owner }}/materia:app-stable
docker tag ghcr.io/${{ github.repository_owner }}/materia:webserver-dev ghcr.io/${{ github.repository_owner }}/materia:webserver-stable
docker push ghcr.io/${{ github.repository_owner }}/materia:app-stable
docker push ghcr.io/${{ github.repository_owner }}/materia:webserver-stable
- name: Push Versioned App and Webserver Images
run: |
docker tag ucfopen/materia:app-dev ghcr.io/${{ github.repository_owner }}/materia:app-${{ github.sha }}
docker tag ucfopen/materia:app-dev ghcr.io/${{ github.repository_owner }}/materia:app-${{ steps.tag_name.outputs.GIT_TAG }}
docker tag ucfopen/materia:webserver-dev ghcr.io/${{ github.repository_owner }}/materia:webserver-${{ github.sha }}
docker tag ucfopen/materia:webserver-dev ghcr.io/${{ github.repository_owner }}/materia:webserver-${{ steps.tag_name.outputs.GIT_TAG }}
docker tag ghcr.io/${{ github.repository_owner }}/materia:app-dev ghcr.io/${{ github.repository_owner }}/materia:app-${{ github.sha }}
docker tag ghcr.io/${{ github.repository_owner }}/materia:app-dev ghcr.io/${{ github.repository_owner }}/materia:app-${{ steps.tag_name.outputs.GIT_TAG }}
docker tag ghcr.io/${{ github.repository_owner }}/materia:webserver-dev ghcr.io/${{ github.repository_owner }}/materia:webserver-${{ github.sha }}
docker tag ghcr.io/${{ github.repository_owner }}/materia:webserver-dev ghcr.io/${{ github.repository_owner }}/materia:webserver-${{ steps.tag_name.outputs.GIT_TAG }}
docker push ghcr.io/${{ github.repository_owner }}/materia:app-${{ github.sha }}
docker push ghcr.io/${{ github.repository_owner }}/materia:app-${{ steps.tag_name.outputs.GIT_TAG }}
docker push ghcr.io/${{ github.repository_owner }}/materia:webserver-${{ github.sha }}
Expand Down
8 changes: 4 additions & 4 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: '3.5'

services:
webserver:
image: ucfopen/materia:webserver-dev
image: ghcr.io/ucfopen/materia:webserver-dev
build:
context: ../
dockerfile: materia-webserver.Dockerfile
Expand All @@ -16,7 +16,7 @@ services:
- app

app:
image: ucfopen/materia:app-dev
image: ghcr.io/ucfopen/materia:app-dev
build:
context: ../
dockerfile: materia-app.Dockerfile
Expand Down Expand Up @@ -52,7 +52,7 @@ services:
- backend

mysql:
image: mysql:5.7.34
image: mysql:8.0.32
platform: linux/amd64
ports:
- "3306:3306" # allow mysql access from the host - use /etc/hosts to set mysql to your docker-machine ip
Expand All @@ -67,7 +67,7 @@ services:
- backend

fakes3:
image: ucfopen/materia:fake-s3-dev
image: ghcr.io/ucfopen/materia:fake-s3-dev
build:
context: ../
dockerfile: materia-fake-s3.Dockerfile
Expand Down
1 change: 1 addition & 0 deletions docker/run_first.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,4 @@ source run_create_me.sh
echo -e "Materia will be hosted on \033[32m$DOCKER_IP\033[0m"
echo -e '\033[1mRun an oil comand:\033[0m ./run.sh php oil r widget:show_engines'
echo -e '\033[1mRun the web app:\033[0m docker compose up'
echo -e 'Doing local dev? Be sure to \033[1myarn install\033[0m and \033[1myarn dev\033[0m to run the local webpack dev server'

0 comments on commit d9477f4

Please sign in to comment.