Skip to content

Workflow file for this run

name: Docker Build and Push on Release
on:
release:
types: [published]
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Log in to Docker Registry
uses: docker/login-action@v1
with:
registry: ghcr.io # replace with your registry if different
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and Push Docker image
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile
push: true
tags: ghcr.io/${{ github.repository }}/httpd-proxy:${{ github.ref_name }} # replace with your image name and tag