Skip to content

chore(docker): bump nginx from 1.29.6-alpine-slim to 1.29.7-alpine-sl… #19

chore(docker): bump nginx from 1.29.6-alpine-slim to 1.29.7-alpine-sl…

chore(docker): bump nginx from 1.29.6-alpine-slim to 1.29.7-alpine-sl… #19

name: build and push
on:
push:
branches:
- "main"
paths:
- "public_html/**"
- "Dockerfile"
workflow_dispatch:
concurrency:
group: "pages"
cancel-in-progress: false
defaults:
run:
shell: bash
permissions:
contents: read
packages: write
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd #v6.0.2
- name: Docker meta
id: docker_meta
uses: docker/metadata-action@030e881283bb7a6894de51c315a6bfe6a94e05cf #v6.0.0
with:
images: ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}
tags: |
type=edge
- name: Login to GitHub Container Registry
uses: docker/login-action@b45d80f862d83dbcd57f89517bcf500b2ab88fb2 #v4.0.0
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@d08e5c354a6adb9ed34480a06d141179aa583294 #v7.0.0
with:
context: .
file: ./Dockerfile
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.docker_meta.outputs.tags }}
labels: ${{ steps.docker_meta.outputs.labels }}