From 541592c2c508d3fab41bcdf9ebea60dde9625ee1 Mon Sep 17 00:00:00 2001 From: H4CK3R-01 Date: Mon, 27 Mar 2023 23:42:29 +0200 Subject: [PATCH] Test gitea actions --- .gitea/workflows/build-backend.yaml | 43 ---------------------------- .gitea/workflows/build-frontend.yaml | 43 ---------------------------- 2 files changed, 86 deletions(-) delete mode 100644 .gitea/workflows/build-backend.yaml delete mode 100644 .gitea/workflows/build-frontend.yaml diff --git a/.gitea/workflows/build-backend.yaml b/.gitea/workflows/build-backend.yaml deleted file mode 100644 index 769f53b..0000000 --- a/.gitea/workflows/build-backend.yaml +++ /dev/null @@ -1,43 +0,0 @@ -name: Build & Publish Backend -on: - push: - paths: - - "backend/**" -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Check out the repo - uses: actions/checkout@v3 - - - name: Docker meta - id: meta - uses: https://github.com/docker/metadata-action@v4 - with: - images: git.flokaiser.com/dhbw/cloud-computing-backend - tags: | - type=sha,enable=true,priority=100,prefix={{branch}}-,suffix=,format=short - type=raw,value=latest,enable={{is_default_branch}} - - - name: Get get-docker.sh - run: curl -fsSL https://get.docker.com -o get-docker.sh - - - name: Install docker - run: sh get-docker.sh - - - name: Login to Registry - uses: docker/login-action@v2 - with: - registry: git.flokaiser.com - username: ${{ secrets.REGISTRY_USERNAME }} - password: ${{ secrets.REGISTRY_TOKEN }} - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - - - name: Build and push - uses: docker/build-push-action@v4 - with: - platforms: linux/amd64 - push: true - tags: ${{ steps.meta.outputs.tags }} \ No newline at end of file diff --git a/.gitea/workflows/build-frontend.yaml b/.gitea/workflows/build-frontend.yaml deleted file mode 100644 index 4194a85..0000000 --- a/.gitea/workflows/build-frontend.yaml +++ /dev/null @@ -1,43 +0,0 @@ -name: Build & Publish Backend -on: - push: - paths: - - "frontend/**" -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Check out the repo - uses: actions/checkout@v3 - - - name: Docker meta - id: meta - uses: https://github.com/docker/metadata-action@v4 - with: - images: git.flokaiser.com/dhbw/cloud-computing-frontend - tags: | - type=sha,enable=true,priority=100,prefix={{branch}}-,suffix=,format=short - type=raw,value=latest,enable={{is_default_branch}} - - - name: Get get-docker.sh - run: curl -fsSL https://get.docker.com -o get-docker.sh - - - name: Install docker - run: sh get-docker.sh - - - name: Login to Registry - uses: docker/login-action@v2 - with: - registry: git.flokaiser.com - username: ${{ secrets.REGISTRY_USERNAME }} - password: ${{ secrets.REGISTRY_TOKEN }} - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - - - name: Build and push - uses: docker/build-push-action@v4 - with: - platforms: linux/amd64 - push: true - tags: ${{ steps.meta.outputs.tags }} \ No newline at end of file