Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 11s
26 lines
642 B
YAML
26 lines
642 B
YAML
name: Build and Push Docker Image
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
build-and-push:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Check out repository code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Log in to Docker Hub - Main web app container registry
|
|
uses: docker/login-action@v1
|
|
with:
|
|
registry: ${{ secrets.DOCKER_REGISTRY }}
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
|
|
- name: Build
|
|
run: docker build -t jake/sprout-db-migrations:latest .
|
|
- name: Push
|
|
run: docker push jake/sprout-db-migrations:latest
|