From 4251a03139344fc5844b8a2331725708b524fa2f Mon Sep 17 00:00:00 2001 From: Ron Rise Date: Fri, 16 May 2025 08:44:02 -0400 Subject: [PATCH] That last commit was cringe --- .gitea/workflows/build.yml | 40 +++++++++++++++++++------------------- .gitea/workflows/tests.yml | 26 ++++++++++++------------- 2 files changed, 33 insertions(+), 33 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 8a96dc0..5595e33 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -3,42 +3,42 @@ on: tags: - 'v*' -name: ๐Ÿ—๏ธโœจ Build Workflow +name: ๐Ÿ—๏ธ โœจ Build Workflow jobs: BuildFrontend: - name: ๐Ÿ–ผ๏ธ๐Ÿ”จ Build Frontend + name: ๐Ÿ–ผ๏ธ ๐Ÿ”จ Build Frontend runs-on: ubuntu-latest steps: - - name: ๐Ÿ›ก๏ธ๐Ÿ”’ Add Siteworx CA Certificates + - name: ๐Ÿ›ก๏ธ ๐Ÿ”’ Add Siteworx CA Certificates run: | apt update && apt install -yq ca-certificates curl curl -Ls https://siteworxpro.com/hosted/Siteworx+Root+CA.pem -o /usr/local/share/ca-certificates/sw.crt update-ca-certificates - - name: ๐Ÿ“–๐Ÿ” Checkout Repository Code + - name: ๐Ÿ“– ๐Ÿ” Checkout Repository Code uses: actions/checkout@v2 with: fetch-depth: 1 - - name: ๐Ÿ”‘๐Ÿ” Login to Docker Hub + - name: ๐Ÿ”‘ ๐Ÿ” Login to Docker Hub uses: docker/login-action@v3 with: username: ${{ vars.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - - name: ๐Ÿ”‘๐Ÿ› ๏ธ Login to Siteworx Registry + - name: ๐Ÿ”‘ ๐Ÿ› ๏ธ Login to Siteworx Registry uses: docker/login-action@v3 with: username: ${{ vars.SITEWORX_USERNAME }} password: ${{ secrets.SITEWORX_PASSWORD }} registry: scr.siteworxpro.com - - name: ๐Ÿ—๏ธ๐Ÿ”ง Set up Docker Buildx + - name: ๐Ÿ—๏ธ ๐Ÿ”ง Set up Docker Buildx uses: docker/setup-buildx-action@v3 - - name: ๐Ÿณ๐Ÿ”จ Build Frontend Container + - name: ๐Ÿณ ๐Ÿ”จ Build Frontend Container uses: docker/build-push-action@v6 with: build-args: | @@ -48,7 +48,7 @@ jobs: tags: scr.siteworxpro.com/reloading-manager/frontend:${{ gitea.ref_name }} push: true - - name: ๐Ÿ“ฆโœจ Build Latest Frontend Container + - name: ๐Ÿ“ฆ โœจ Build Latest Frontend Container uses: docker/build-push-action@v6 with: build-args: | @@ -59,7 +59,7 @@ jobs: push: true BuildBackend: - name: ๐Ÿ–ฅ๏ธ๐Ÿ”จ Build Backend + name: ๐Ÿ–ฅ๏ธ ๐Ÿ”จ Build Backend runs-on: ubuntu-latest steps: @@ -74,23 +74,23 @@ jobs: with: fetch-depth: 1 - - name: ๐Ÿ”‘๐Ÿ” Login to Docker Hub + - name: ๐Ÿ”‘ ๐Ÿ” Login to Docker Hub uses: docker/login-action@v3 with: username: ${{ vars.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - - name: ๐Ÿ”‘๐Ÿ› ๏ธ Login to Siteworx Registry + - name: ๐Ÿ”‘ ๐Ÿ› ๏ธ Login to Siteworx Registry uses: docker/login-action@v3 with: username: ${{ vars.SITEWORX_USERNAME }} password: ${{ secrets.SITEWORX_PASSWORD }} registry: scr.siteworxpro.com - - name: ๐Ÿ—๏ธ๐Ÿ”ง Set up Docker Buildx + - name: ๐Ÿ—๏ธ ๐Ÿ”ง Set up Docker Buildx uses: docker/setup-buildx-action@v3 - - name: ๐Ÿณ๐Ÿ”จ Build Backend Container + - name: ๐Ÿณ ๐Ÿ”จ Build Backend Container uses: docker/build-push-action@v6 with: context: ./backend @@ -98,7 +98,7 @@ jobs: tags: scr.siteworxpro.com/reloading-manager/backend:${{ gitea.ref_name }} push: true - - name: ๐Ÿ“ฆโœจ Build Latest Backend Container + - name: ๐Ÿ“ฆ โœจ Build Latest Backend Container uses: docker/build-push-action@v6 with: context: ./backend @@ -107,7 +107,7 @@ jobs: push: true Deploy: - name: ๐Ÿš€โœจ Deploy Application + name: ๐Ÿš€ โœจ Deploy Application runs-on: ubuntu-latest needs: [BuildFrontend, BuildBackend] steps: @@ -118,17 +118,17 @@ jobs: curl -Ls https://siteworxpro.com/hosted/Siteworx+Root+CA.pem -o /usr/local/share/ca-certificates/sw.crt update-ca-certificates - - name: ๐Ÿ“–๐Ÿ” Checkout Repository Code + - name: ๐Ÿ“– ๐Ÿ” Checkout Repository Code uses: actions/checkout@v2 with: fetch-depth: 1 - - name: ๐Ÿ“๐Ÿ”ง Update Deployment Manifest + - name: ๐Ÿ“ ๐Ÿ”ง Update Deployment Manifest run: | echo "## Do not edit this file directly. It is auto-generated by the script." > argocd/deployment/deployment.yml sed "s|__TAG__|${{ gitea.ref_name }}|g" argocd/template/deployment.yml >> argocd/deployment/deployment.yml - - name: ๐Ÿ’พโœ… Commit Updated Manifest + - name: ๐Ÿ’พ โœ… Commit Updated Manifest uses: EndBug/add-and-commit@v9 with: new_branch: release/${{ gitea.ref_name }}-deploy @@ -137,6 +137,6 @@ jobs: author_email: gitia@siteworxpro.com message: "๐Ÿ“๐Ÿ”„ Update deployment manifest with new image tags" - - name: ๐Ÿš€โœจ Create Pull Request + - name: ๐Ÿš€ โœจ Create Pull Request id: cpr uses: peter-evans/create-pull-request@v7 \ No newline at end of file diff --git a/.gitea/workflows/tests.yml b/.gitea/workflows/tests.yml index 76781ae..78ddc6c 100644 --- a/.gitea/workflows/tests.yml +++ b/.gitea/workflows/tests.yml @@ -9,31 +9,31 @@ on: branches: - "*" -name: ๐Ÿงชโœจ Unit Tests Workflow +name: ๐Ÿงช โœจ Unit Tests Workflow jobs: build-javascript: - name: ๐Ÿงช๐Ÿ“œ JavaScript Tests + name: ๐Ÿงช ๐Ÿ“œ JavaScript Tests runs-on: ubuntu-latest steps: - - name: ๐Ÿ›ก๏ธ๐Ÿ”’ Add Siteworx CA Certificates + - name: ๐Ÿ›ก๏ธ ๐Ÿ”’ Add Siteworx CA Certificates run: | apt update && apt install -yq ca-certificates curl curl -Ls https://siteworxpro.com/hosted/Siteworx+Root+CA.pem -o /usr/local/share/ca-certificates/sw.crt update-ca-certificates - - name: ๐Ÿ“–๐Ÿ” Checkout Repository Code + - name: ๐Ÿ“– ๐Ÿ” Checkout Repository Code uses: actions/checkout@v2 with: fetch-depth: 1 - - name: โš™๏ธ๐Ÿ”ง Set up Node.js Environment + - name: โš™๏ธ ๐Ÿ”ง Set up Node.js Environment uses: actions/setup-node@v2 with: node-version: '22.14.0' - - name: ๐Ÿ“ฆ๐Ÿ“ฅ Install Dependencies + - name: ๐Ÿ“ฆ ๐Ÿ“ฅ Install Dependencies run: | cd frontend npm install - - name: โœ…๐Ÿงช Run JavaScript Tests + - name: โœ… ๐Ÿงช Run JavaScript Tests run: | cd frontend npm run build @@ -42,28 +42,28 @@ jobs: env: GOPRIVATE: 'git.siteworxpro.com' GOPROXY: 'direct' - name: ๐Ÿ”๐Ÿน Go Tests + name: ๐Ÿ” ๐Ÿน Go Tests runs-on: ubuntu-latest steps: - - name: ๐Ÿ›ก๏ธ๐Ÿ”’ Add Siteworx CA Certificates + - name: ๐Ÿ›ก๏ธ ๐Ÿ”’ Add Siteworx CA Certificates run: | apt update && apt install -yq ca-certificates curl curl -Ls https://siteworxpro.com/hosted/Siteworx+Root+CA.pem -o /usr/local/share/ca-certificates/sw.crt update-ca-certificates - - name: โš™๏ธ๐Ÿน Set up Go Environment + - name: โš™๏ธ ๐Ÿน Set up Go Environment uses: actions/setup-go@v2 with: go-version: '1.24.0' cache: true - - name: ๐Ÿ“–๐Ÿ” Checkout Repository Code + - name: ๐Ÿ“– ๐Ÿ” Checkout Repository Code uses: actions/checkout@v2 with: fetch-depth: 1 - - name: ๐Ÿ“ฆ๐Ÿ“ฅ Install Dependencies + - name: ๐Ÿ“ฆ ๐Ÿ“ฅ Install Dependencies run: | cd backend go mod download - - name: โœ…๐Ÿ” Run Go Tests + - name: โœ… ๐Ÿ” Run Go Tests run: | cd backend go test -v ./... -coverprofile=coverage.out \ No newline at end of file