From ac234fcf1fda679b55b310d599c4a190e83370e7 Mon Sep 17 00:00:00 2001 From: Jack Date: Sat, 26 Aug 2023 03:33:47 +0100 Subject: [PATCH] Create build-arm.yaml --- .gitea/workflows/build-arm.yaml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .gitea/workflows/build-arm.yaml diff --git a/.gitea/workflows/build-arm.yaml b/.gitea/workflows/build-arm.yaml new file mode 100644 index 0000000..37884fd --- /dev/null +++ b/.gitea/workflows/build-arm.yaml @@ -0,0 +1,30 @@ +name: Build and push image + +on: + push: + branches: [main] + +jobs: + Build: + runs-on: ubuntu-latest + steps: + - name: Install + run: curl -fsSL get.docker.com | bash + - name: Clone + run: git clone https://git.tgj.services/thatguyjack/custom-docker-containers.git . + - name: Login + run: echo "${{ secrets.DOCKERHUB_TOKEN }}" | docker login git.tgj.services -u thatguyjack --password-stdin + - name: Build php-FPM + run: docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 ./php-fpm/ -t git.tgj.services/thatguyjack/php-fpm:latest + - name: Build php-CLI + run: docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 ./php-cli/ -t git.tgj.services/thatguyjack/php-cli:latest + - name: Build nginx-web + run: docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 ./nginx-web -t git.tgj.services/thatguyjack/nginx-web:latest + - name: Build motioneye + run: docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 ./motioneye -t git.tgj.services/thatguyjack/motioneye:latest + - name: Push + run: | + docker push git.tgj.services/thatguyjack/php-fpm:latest + docker push git.tgj.services/thatguyjack/php-cli:latest + docker push git.tgj.services/thatguyjack/nginx-web:latest + docker push git.tgj.services/thatguyjack/motioneye:latest \ No newline at end of file