Skip to content

Publish Docker image alpine #56

Publish Docker image alpine

Publish Docker image alpine #56

Workflow file for this run

name: Publish Docker image alpine
on:
push:
branches:
- main
paths:
- 'docker-alpine/**'
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-alpine
push: true
tags: kaozaza2/laravel-environment:alpine