Skip to content

Commit

Permalink
Changes from the master to the main (#16)
Browse files Browse the repository at this point in the history
* 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
VikDavydiuk authored Jul 15, 2023
1 parent 7c698b6 commit ef2e9e7
Show file tree
Hide file tree
Showing 3 changed files with 917 additions and 777 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/clean.yml
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 }}
37 changes: 37 additions & 0 deletions .github/workflows/tag.yml
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 }}
Loading

0 comments on commit ef2e9e7

Please sign in to comment.