-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into Gradebook-Page-styling-Cards#78&82
- Loading branch information
Showing
42 changed files
with
1,481 additions
and
475 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# Builds DevU images on develop | ||
# tagged as beta | ||
|
||
name: Build DevU beta | ||
on: | ||
push: | ||
branches: | ||
- develop | ||
|
||
jobs: | ||
build-docker: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write # to be able to publish a GitHub release | ||
issues: write # to be able to comment on released issues | ||
pull-requests: write # to be able to comment on released pull requests | ||
packages: write # to be able to publish docker image packages | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
fetch-depth: 0 | ||
|
||
# todo run tests | ||
|
||
# docker image build | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Login to GHCR registry | ||
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin | ||
|
||
- name: Convert image name to lowercase | ||
run: | | ||
original_string=${{ github.repository }} | ||
echo "repo_url=$(echo $original_string | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV | ||
# beta tags | ||
- name: API beta image | ||
run: | | ||
docker build . -f api.Dockerfile -t ghcr.io/${{ env.repo_url }}-api:beta | ||
docker push ghcr.io/${{ env.repo_url }}-api:beta | ||
- name: client beta image | ||
run: | | ||
docker build . -f client.Dockerfile -t ghcr.io/${{ env.repo_url }}-client:beta | ||
docker push ghcr.io/${{ env.repo_url }}-client:beta | ||
- name: nginx beta image | ||
run: | | ||
docker build . -f nginx.Dockerfile -t ghcr.io/${{ env.repo_url }}-nginx:beta | ||
docker push ghcr.io/${{ env.repo_url }}-nginx:beta | ||
- name: build tango image | ||
run: | | ||
docker build ./tango -f ./tango/Dockerfile -t ghcr.io/${{ env.repo_url }}-tango:beta | ||
docker push ghcr.io/${{ env.repo_url }}-tango:beta | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
# Builds DevU images for release | ||
# tagged as latest and version number | ||
|
||
name: Release | ||
on: | ||
push: | ||
branches: | ||
- release | ||
|
||
jobs: | ||
tag-release: | ||
name: tag-release | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write # to be able to publish a GitHub release | ||
issues: write # to be able to comment on released issues | ||
pull-requests: write # to be able to comment on released pull requests | ||
packages: write # to be able to publish docker image packages | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: "lts/*" | ||
- name: install plugins | ||
run: npm install --no-save @semantic-release/git @semantic-release/changelog -D | ||
|
||
- name: tag version number release based on commits | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: npx semantic-release | ||
|
||
build-docker: | ||
needs: | ||
- tag-release | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write # to be able to publish a GitHub release | ||
issues: write # to be able to comment on released issues | ||
pull-requests: write # to be able to comment on released pull requests | ||
packages: write # to be able to publish docker images | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
fetch-depth: 0 | ||
|
||
- name: Get version tag from git history | ||
id: tagName | ||
uses: "WyriHaximus/github-action-get-previous-tag@v1" | ||
|
||
# todo run tests | ||
- name: Convert image name to lowercase | ||
run: | | ||
original_string=${{ github.repository }} | ||
echo "repo_url=$(echo $original_string | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV | ||
# docker image build | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Login to GHCR registry | ||
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin | ||
|
||
- name: API latest and version image | ||
run: | | ||
docker build . -f api.Dockerfile -t ghcr.io/${{ env.repo_url }}-api:${{ steps.tagName.outputs.tag }} | ||
docker push ghcr.io/${{ env.repo_url }}-api:${{ steps.tagName.outputs.tag }} | ||
docker build . -f api.Dockerfile -t ghcr.io/${{ env.repo_url }}-api:latest | ||
docker push ghcr.io/${{ env.repo_url }}-api:latest | ||
- name: client latest and version image | ||
run: | | ||
docker build . -f client.Dockerfile -t ghcr.io/${{ env.repo_url }}-client:${{ steps.tagName.outputs.tag }} | ||
docker push ghcr.io/${{ env.repo_url }}-client:${{ steps.tagName.outputs.tag }} | ||
docker build . -f client.Dockerfile -t ghcr.io/${{ env.repo_url }}-client:latest | ||
docker push ghcr.io/${{ env.repo_url }}-client:latest | ||
- name: nginx latest and version image | ||
run: | | ||
docker build . -f nginx.Dockerfile -t ghcr.io/${{ env.repo_url }}-nginx:${{ steps.tagName.outputs.tag }} | ||
docker push ghcr.io/${{ env.repo_url }}-nginx:${{ steps.tagName.outputs.tag }} | ||
docker build . -f nginx.Dockerfile -t ghcr.io/${{ env.repo_url }}-nginx:latest | ||
docker push ghcr.io/${{ env.repo_url }}-nginx:latest | ||
- name: tango latest and version image | ||
run: | | ||
docker build ./tango -f ./tango/Dockerfile -t ghcr.io/${{ env.repo_url }}-tango:latest | ||
docker push ghcr.io/${{ env.repo_url }}-tango:latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"branches": [ | ||
{ | ||
"name": "release" | ||
} | ||
], | ||
"plugins": [ | ||
"@semantic-release/commit-analyzer", | ||
"@semantic-release/release-notes-generator", | ||
"@semantic-release/changelog", | ||
"@semantic-release/github", | ||
"@semantic-release/git" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.