Archived
Private
Public Access
1
0
This repository has been archived on 2026-02-04. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
BetterIServ/.gitea/workflows/build.yaml
2023-05-17 19:16:45 +02:00

77 lines
2.1 KiB
YAML

name: build
env:
DOCKER_IMAGE: git.leon-hoppe.de/leon.hoppe/betteriserv
on:
push:
branches: main
jobs:
frontend:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Login to Repo
uses: docker/login-action@v2
env:
PATH: /usr/bin/docker
with:
registry: git.leon-hoppe.de
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
volumes:
- /usr/bin/docker:/usr/bin/docker
- /var/run/docker.sock:/var/run/docker.sock
- name: Build and Push
uses: docker/build-push-action@v4
env:
ACTIONS_RUNTIME_TOKEN: '' # See https://gitea.com/gitea/act_runner/issues/119
PATH: /usr/bin/docker
with:
context: BetterIServ.Mobile
file: ./Dockerfile
platforms: linux/amd64
push: true
tags: ${{ env.DOCKER_IMAGE }}-frontend:latest
volumes:
- /usr/bin/docker:/usr/bin/docker
- /var/run/docker.sock:/var/run/docker.sock
backend:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Login to Repo
uses: docker/login-action@v2
env:
PATH: /usr/bin/docker
with:
registry: git.leon-hoppe.de
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
volumes:
- /usr/bin/docker:/usr/bin/docker
- /var/run/docker.sock:/var/run/docker.sock
- name: Build and Push
uses: docker/build-push-action@v4
env:
ACTIONS_RUNTIME_TOKEN: '' # See https://gitea.com/gitea/act_runner/issues/119
PATH: /usr/bin/docker
with:
context: BetterIServ.Backend
file: ./Dockerfile
platforms: linux/amd64
push: true
tags: ${{ env.DOCKER_IMAGE }}-backend:latest
volumes:
- /usr/bin/docker:/usr/bin/docker
- /var/run/docker.sock:/var/run/docker.sock