Skip to content

feat: edit branches for the pipeline #1

feat: edit branches for the pipeline

feat: edit branches for the pipeline #1

name: Build and Push Docker Image
on:
push:
branches:
- main
- feat/init
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Log in to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: |
ghcr.io/${{ github.repository_owner }}/php-nginx-dev-wkhtmltopdf:latest
ghcr.io/${{ github.repository_owner }}/php-nginx-dev-wkhtmltopdf:${{ github.sha }}