Update versions.tf #282
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docker Build and Push | |
on: | |
push: | |
branches: | |
- main # or any other branch you want to trigger the workflow | |
#schedule: | |
# - cron: '0 0 * * *' # Runs at 00:00 UTC every day | |
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:latest # replace with your image name and tag |