@@ -36,17 +36,32 @@ jobs:
36
36
touch .env.local
37
37
fi
38
38
39
- - name : Build App Image
39
+ - name : Build App and Webserver Images
40
40
run : |
41
41
cd docker
42
- docker compose build --no-cache webserver app
42
+ docker compose build --no-cache webserver app fakes3
43
43
44
- - name : Push App Images
44
+ - name : Push Dev App and Webserver Images
45
+ if : ${{ startsWith(github.ref, 'refs/tags/v') && (contains(github.ref, '-alpha') || contains(github.ref, '-rc')) }}
45
46
run : |
46
- docker tag ucfopen/materia:app-dev ghcr.io/${{ github.repository_owner }}/materia:app-${{ github.sha }}
47
- docker tag ucfopen/materia:app-dev ghcr.io/${{ github.repository_owner }}/materia:app-${{ steps.tag_name.outputs.GIT_TAG }}
48
- docker tag ucfopen/materia:webserver-dev ghcr.io/${{ github.repository_owner }}/materia:webserver-${{ github.sha }}
49
- docker tag ucfopen/materia:webserver-dev ghcr.io/${{ github.repository_owner }}/materia:webserver-${{ steps.tag_name.outputs.GIT_TAG }}
47
+ docker push ghcr.io/${{ github.repository_owner }}/materia:app-dev
48
+ docker push ghcr.io/${{ github.repository_owner }}/materia:webserver-dev
49
+ docker push ghcr.io/${{ github.repository_owner }}/materia:fake-s3-dev
50
+
51
+ - name : Push Stable App and Webserver Images
52
+ if : ${{ startsWith(github.ref, 'refs/tags/v') && !contains(github.ref, '-alpha') && !contains(github.ref, '-rc') }}
53
+ run : |
54
+ docker tag ghcr.io/${{ github.repository_owner }}/materia:app-dev ghcr.io/${{ github.repository_owner }}/materia:app-stable
55
+ docker tag ghcr.io/${{ github.repository_owner }}/materia:webserver-dev ghcr.io/${{ github.repository_owner }}/materia:webserver-stable
56
+ docker push ghcr.io/${{ github.repository_owner }}/materia:app-stable
57
+ docker push ghcr.io/${{ github.repository_owner }}/materia:webserver-stable
58
+
59
+ - name : Push Versioned App and Webserver Images
60
+ run : |
61
+ docker tag ghcr.io/${{ github.repository_owner }}/materia:app-dev ghcr.io/${{ github.repository_owner }}/materia:app-${{ github.sha }}
62
+ docker tag ghcr.io/${{ github.repository_owner }}/materia:app-dev ghcr.io/${{ github.repository_owner }}/materia:app-${{ steps.tag_name.outputs.GIT_TAG }}
63
+ docker tag ghcr.io/${{ github.repository_owner }}/materia:webserver-dev ghcr.io/${{ github.repository_owner }}/materia:webserver-${{ github.sha }}
64
+ docker tag ghcr.io/${{ github.repository_owner }}/materia:webserver-dev ghcr.io/${{ github.repository_owner }}/materia:webserver-${{ steps.tag_name.outputs.GIT_TAG }}
50
65
docker push ghcr.io/${{ github.repository_owner }}/materia:app-${{ github.sha }}
51
66
docker push ghcr.io/${{ github.repository_owner }}/materia:app-${{ steps.tag_name.outputs.GIT_TAG }}
52
67
docker push ghcr.io/${{ github.repository_owner }}/materia:webserver-${{ github.sha }}
70
85
overwrite : true
71
86
72
87
- name : Upload to Pre-Release
73
- if : ${{ startsWith(github.ref, 'refs/tags/v') && contains(github.ref, '-alpha') && contains(github.ref, '-rc') }}
88
+ if : ${{ startsWith(github.ref, 'refs/tags/v') && contains(github.ref, '-alpha') || contains(github.ref, '-rc') }}
74
89
uses : svenstaro/upload-release-action@v2
75
90
with :
76
91
repo_token : ${{ secrets.GITHUB_TOKEN }}
0 commit comments