Seperate Build Jobs to speed up things
Some checks are pending
Build and push image / Build (push) Has started running
Some checks are pending
Build and push image / Build (push) Has started running
This commit is contained in:
parent
4ee07ab7c5
commit
3763dfa570
26
.gitea/workflows/build-motioneye.yaml
Normal file
26
.gitea/workflows/build-motioneye.yaml
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
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: Buildx Container
|
||||||
|
run: docker buildx create --name buildx --driver=docker-container
|
||||||
|
- name: Build motioneye
|
||||||
|
run: docker buildx build --builder=buildx --platform=linux/amd64,linux/arm64,linux/arm/v7 ./motioneye -t git.tgj.services/thatguyjack/motioneye:latest --push
|
||||||
|
# - 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
|
26
.gitea/workflows/build-nginx.yaml
Normal file
26
.gitea/workflows/build-nginx.yaml
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
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: Buildx Container
|
||||||
|
run: docker buildx create --name buildx --driver=docker-container
|
||||||
|
- name: Build nginx-web
|
||||||
|
run: docker buildx build --builder=buildx --platform=linux/amd64,linux/arm64,linux/arm/v7 ./nginx-web -t git.tgj.services/thatguyjack/nginx-web:latest --push
|
||||||
|
# - 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
|
26
.gitea/workflows/build-php-cli.yaml
Normal file
26
.gitea/workflows/build-php-cli.yaml
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
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: Buildx Container
|
||||||
|
run: docker buildx create --name buildx --driver=docker-container
|
||||||
|
- name: Build php-CLI
|
||||||
|
run: docker buildx build --builder=buildx --platform=linux/amd64,linux/arm64,linux/arm/v7 ./php-cli/ -t git.tgj.services/thatguyjack/php-cli:latest --push
|
||||||
|
# - 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
|
26
.gitea/workflows/build-php-fpm.yaml
Normal file
26
.gitea/workflows/build-php-fpm.yaml
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
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: Buildx Container
|
||||||
|
run: docker buildx create --name buildx --driver=docker-container
|
||||||
|
- name: Build php-FPM
|
||||||
|
run: docker buildx build --builder=buildx --platform=linux/amd64,linux/arm64,linux/arm/v7 ./php-fpm/ -t git.tgj.services/thatguyjack/php-fpm:latest --push
|
||||||
|
# - 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
|
@ -1,32 +0,0 @@
|
|||||||
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: Buildx Container
|
|
||||||
run: docker buildx create --name buildx --driver=docker-container
|
|
||||||
- name: Build php-FPM
|
|
||||||
run: docker buildx build --builder=buildx --platform=linux/amd64,linux/arm64,linux/arm/v7 ./php-fpm/ -t git.tgj.services/thatguyjack/php-fpm:latest --push
|
|
||||||
- name: Build php-CLI
|
|
||||||
run: docker buildx build --builder=buildx --platform=linux/amd64,linux/arm64,linux/arm/v7 ./php-cli/ -t git.tgj.services/thatguyjack/php-cli:latest --push
|
|
||||||
- name: Build nginx-web
|
|
||||||
run: docker buildx build --builder=buildx --platform=linux/amd64,linux/arm64,linux/arm/v7 ./nginx-web -t git.tgj.services/thatguyjack/nginx-web:latest --push
|
|
||||||
- name: Build motioneye
|
|
||||||
run: docker buildx build --builder=buildx --platform=linux/amd64,linux/arm64,linux/arm/v7 ./motioneye -t git.tgj.services/thatguyjack/motioneye:latest --push
|
|
||||||
- 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
|
|
Loading…
x
Reference in New Issue
Block a user