Files
custom-docker-containers/.gitea/workflows/build.yaml
Jack cf50d17ca3
All checks were successful
Build and push image / Build (push) Successful in 7m6s
Update build.yaml
2026-01-03 17:41:54 +00:00

30 lines
1.4 KiB
YAML

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 https://git.tgj.services -u ThatGuyJack --password-stdin
- name: Buildx Container
run: docker buildx create --name buildx --driver=docker-container
- name: Build
run: |
docker buildx build --builder=buildx --platform=linux/amd64 ./nginx-web -t git.tgj.services/thatguyjack/nginx-web:latest --push
docker buildx build --builder=buildx --platform=linux/amd64 ./php-8-1-cli/ -t git.tgj.services/thatguyjack/php-cli:8.1 --push
docker buildx build --builder=buildx --platform=linux/amd64 ./php-8-1-fpm/ -t git.tgj.services/thatguyjack/php-fpm:8.1 --push
docker buildx build --builder=buildx --platform=linux/amd64 ./php-8-2-fpm/ -t git.tgj.services/thatguyjack/php-fpm:8.2 --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