Jack 4c2e0adacb
All checks were successful
Build and push image / Build (push) Successful in 10m31s
Update build.yaml
2023-08-26 00:18:58 +01:00

27 lines
1003 B
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: Build php-FPM
run: docker build ./php-fpm/ -t git.tgj.services/thatguyjack/php-fpm:latest
- name: Build php-CLI
run: docker build ./php-cli/ -t git.tgj.services/thatguyjack/php-cli:latest
- name: Build nginx-web
run: docker build ./nginx-web -t git.tgj.services/thatguyjack/nginx-web: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