Jack b27aa50671
Some checks failed
Build and push image / Build (push) Failing after 36s
add php8.2 fpm
2024-07-15 11:26:11 +01:00

34 lines
1.7 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 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 ./nginx-web -t git.tgj.services/thatguyjack/nginx-web:latest --push
- name: Build php-8.1-CLI
run: docker buildx build --builder=buildx --platform=linux/amd64,linux/arm64 ./php-8-1-cli/ -t git.tgj.services/thatguyjack/php-cli:8.1 --push
- name: Build php-8.2-CLI
run: docker buildx build --builder=buildx --platform=linux/amd64,linux/arm64 ./php-8-2-cli/ -t git.tgj.services/thatguyjack/php-cli:8.2 --push
- name: Build php8-1-FPM
run: docker buildx build --builder=buildx --platform=linux/amd64,linux/arm64 ./php-8-1-fpm/ -t git.tgj.services/thatguyjack/php-fpm:8.1 --push
- name: Build php-8-2-FPM
run: docker buildx build --builder=buildx --platform=linux/amd64,linux/arm64 ./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