-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changes from the master to the main (#16)
* Create clean action.yml (#12) * Create clean.yml * Add contents:read * Update modules * fix issue --------- Co-authored-by: Viktoriia <1> * Create tag.yml (#14) * Create tag.yml * Change version --------- Co-authored-by: Viktoriia <1>
- Loading branch information
1 parent
7c698b6
commit ef2e9e7
Showing
3 changed files
with
917 additions
and
777 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,15 @@ | ||
--- | ||
name: Clean Deployment | ||
|
||
on: delete | ||
|
||
jobs: | ||
clean: | ||
permissions: | ||
contents: read | ||
uses: hpi-schul-cloud/dof_app_deploy/.github/workflows/clean_workflow.yml@main | ||
with: | ||
branch: ${{ github.event.ref }} | ||
secrets: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
DEV_KUBE_CONFIG: ${{ secrets.DEV_KUBE_CONFIG }} |
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,37 @@ | ||
--- | ||
name: Build and push Docker Image on Tag | ||
|
||
on: | ||
push: | ||
tags: | ||
- '[0-9]*' | ||
|
||
jobs: | ||
build_and_push_docker: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Docker meta Service Name for docker hub | ||
id: docker_meta_img_hub | ||
uses: docker/metadata-action@v3 | ||
with: | ||
images: schulcloud/tldraw-client | ||
tags: | | ||
type=semver,pattern={{version}} | ||
type=semver,pattern={{major}}.{{minor}} | ||
- name: Log into registry | ||
uses: docker/login-action@v1 | ||
with: | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_TOKEN }} | ||
|
||
- name: Build and push ${{ github.repository }} | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: . | ||
file: ./Dockerfile | ||
platforms: linux/amd64 | ||
push: true | ||
tags: ${{ steps.docker_meta_img_hub.outputs.tags }} | ||
labels: ${{ steps.docker_meta_img_hub.outputs.labels }} |
Oops, something went wrong.