Skip to content

Update nginx version to 1.25.2 #4

Update nginx version to 1.25.2

Update nginx version to 1.25.2 #4

name: Publish Docker image
on:
push:
branches: [main]
tags-ignore:
- "*.*.*"
jobs:
push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v3
- name: Log in to Docker Hub
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build Docker image
run: docker build --build-arg ENABLED_MODULES="headers-more" --cache-from c0d1um/nginx:latest --tag c0d1um/nginx:latest .
- name: Push Docker Image to DockerHub
run: docker push c0d1um/nginx:latest