diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml
index 8d3aaf4..db95244 100644
--- a/.github/workflows/master.yml
+++ b/.github/workflows/master.yml
@@ -1,10 +1,10 @@
-name: Master CI
+name: Master v1 CI
on:
push:
- branches: [ master ]
+ branches: [ master-1 ]
pull_request:
- branches: [ master ]
+ branches: [ master-1 ]
jobs:
build-test:
@@ -28,70 +28,4 @@ jobs:
- name: Build/Test & SonarCloud Scan
run: mvn -B clean verify -Pcoverage,sonar -Dsonar.token=${{ secrets.SONAR_TOKEN }}
env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-
- docker:
- name: Publish Docker Image
- needs: [ build-test ]
- runs-on: ubuntu-latest
- if: success() && github.ref == 'refs/heads/master'
-
- outputs:
- digest: ${{ steps.docker_build.outputs.digest }}
-
- steps:
- - name: Set up QEMU
- uses: docker/setup-qemu-action@v3
-
- - name: Set up Docker Buildx
- uses: docker/setup-buildx-action@v3
-
- - name: Login to DockerHub
- uses: docker/login-action@v3
- with:
- username: ${{ secrets.DOCKERHUB_USERNAME }}
- password: ${{ secrets.DOCKERHUB_TOKEN }}
-
- - name: Build and push
- id: docker_build
- uses: docker/build-push-action@v6
- with:
- push: true
-# file: ./Dockerfile.native
- platforms: linux/amd64,linux/arm64
- tags: ${{ secrets.DOCKERHUB_USERNAME }}/switcher-ac:latest
-
- update-kustomize:
- name: Deploy
- needs: [ docker ]
- runs-on: ubuntu-latest
-
- steps:
- - name: Checkout
- uses: actions/checkout@v4
- with:
- ref: 'master'
-
- - name: Checkout Kustomize
- uses: actions/checkout@v4
- with:
- token: ${{ secrets.ARGOCD_PAT }}
- repository: switcherapi/switcher-deployment
- ref: master
-
- - name: Set up arkade-get
- uses: alexellis/arkade-get@master
- with:
- kubectl: latest
- kustomize: latest
-
- - name: Update GitOps repository
- run: |
- cd switcher-ac/base
- echo RELEASE_TIME=`date` > environment-properties.env
- kustomize edit set image trackerforce/switcher-ac:latest=trackerforce/switcher-ac@${{ needs.docker.outputs.digest }}
- git config --global user.email "${{ github.actor }}@users.noreply.github.com"
- git config --global user.name "${{ github.actor }}"
- git add .
- git commit -m "[argocd] switcher-ac: ${{ needs.docker.outputs.digest }}"
- git push
\ No newline at end of file
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index e522fde..07520c3 100644
--- a/pom.xml
+++ b/pom.xml
@@ -7,7 +7,7 @@
com.github.switcherac
switcher-ac
- 1.0.10
+ 1.1.0-SNAPSHOT
Switcher Account Control
Account Control Service for Switcher API
@@ -71,6 +71,7 @@
0.10.6
3.14.0
+ 3.5.3
5.1.0.4751
0.8.13
@@ -317,6 +318,15 @@
org.springframework.boot
spring-boot-maven-plugin
+
+
+ org.apache.maven.plugins
+ maven-surefire-plugin
+ ${maven-surefire-plugin.version}
+
+ suites
+
+
diff --git a/src/main/java/com/github/switcherapi/ac/controller/AdminController.java b/src/main/java/com/github/switcherapi/ac/controller/AdminController.java
index f305fe5..f6bd78f 100644
--- a/src/main/java/com/github/switcherapi/ac/controller/AdminController.java
+++ b/src/main/java/com/github/switcherapi/ac/controller/AdminController.java
@@ -2,7 +2,6 @@
import com.github.switcherapi.ac.model.dto.AccountDTO;
import com.github.switcherapi.ac.model.dto.GitHubAuthDTO;
-import com.github.switcherapi.ac.model.mapper.AccountMapper;
import com.github.switcherapi.ac.service.AccountService;
import com.github.switcherapi.ac.service.AdminService;
import io.swagger.v3.oas.annotations.Operation;
@@ -51,8 +50,7 @@ public ResponseEntity