Skip to content

Publish Docker image #29

Publish Docker image

Publish Docker image #29

Workflow file for this run

name: Publish Docker image
on:
push:
branches:
- main
paths:
- 'docker/**'
schedule:
- cron: '0 0 * * 0'
jobs:
build:
name: Build & Push Docker image to Docker Hub
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push Docker image
uses: docker/build-push-action@v3
with:
context: ./docker
push: true
tags: kaozaza2/laravel-environment:latest