diff --git a/.gitea/workflows/build-frontend.yaml b/.gitea/workflows/build-frontend.yaml new file mode 100644 index 0000000..53ca243 --- /dev/null +++ b/.gitea/workflows/build-frontend.yaml @@ -0,0 +1,30 @@ +name: build + +env: + DOCKER_IMAGE: git.leon-hoppe.de/leon.hoppe/betteriserv + +on: + push: + branches: main + +jobs: + frontend: + runs-on: ubuntu-latest + container: + image: catthehacker/ubuntu:act-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Login to Repo + uses: docker/login-action@v2 + with: + registry: git.leon-hoppe.de + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + + - name: Build docker image + run: docker build -t ${{ env.DOCKER_IMAGE }}-frontend:latest BetterIServ.Mobile/ + + - name: Push docker image + run: docker push ${{ env.DOCKER_IMAGE }}-frontend:latest diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml deleted file mode 100644 index b25cf83..0000000 --- a/.gitea/workflows/build.yaml +++ /dev/null @@ -1,74 +0,0 @@ -name: build - -env: - DOCKER_IMAGE: git.leon-hoppe.de/leon.hoppe/betteriserv - -on: - push: - branches: main - -jobs: - frontend: - runs-on: ubuntu-latest - container: - image: catthehacker/ubuntu:act-latest - steps: - - name: Checkout - uses: actions/checkout@v3 - - - name: Set up QEMU - uses: docker/setup-qemu-action@v2 - - - name: Set up Docker BuildX - uses: docker/setup-buildx-action@v2 - - - name: Login to Repo - uses: docker/login-action@v2 - with: - registry: git.leon-hoppe.de - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_PASSWORD }} - - - name: Build and Push - uses: docker/build-push-action@master - env: - ACTIONS_RUNTIME_TOKEN: '' # See https://gitea.com/gitea/act_runner/issues/119 - with: - context: BetterIServ.Mobile - file: ./Dockerfile - platforms: linux/amd64 - push: true - tags: ${{ env.DOCKER_IMAGE }}-frontend:latest - - - backend: - runs-on: ubuntu-latest - container: - image: catthehacker/ubuntu:act-latest - steps: - - name: Checkout - uses: actions/checkout@v3 - - - name: Set up QEMU - uses: docker/setup-qemu-action@v2 - - - name: Set up Docker BuildX - uses: docker/setup-buildx-action@v2 - - - name: Login to Repo - uses: docker/login-action@v2 - with: - registry: git.leon-hoppe.de - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_PASSWORD }} - - - name: Build and Push - uses: docker/build-push-action@master - env: - ACTIONS_RUNTIME_TOKEN: '' # See https://gitea.com/gitea/act_runner/issues/119 - with: - context: BetterIServ.Backend - file: ./Dockerfile - platforms: linux/amd64 - push: true - tags: ${{ env.DOCKER_IMAGE }}-backend:latest