Jack 3511cebc51
Some checks failed
Build and push image / Build (push) Failing after 32s
Update build.yaml
2023-08-25 19:42:37 +01:00

19 lines
569 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://tgj.services/git/ThatGuyJack/php-fpm-docker.git .
- name: Build
run: |
echo "${{ secrets.DOCKERHUB_TOKEN }}" | docker login 'tgj.services/git/' -u thatguyjack --password-stdin
docker build -t tgj.services/git/thatguyjack/php-fpm:latest
docker push tgj.services/git/thatguyjack/php-fpm:latest