Skip to content

Commit

Permalink
Update image-publish.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
furkatgofurov7 authored Nov 22, 2024
1 parent db218c3 commit 227057a
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/image-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: Build and Publish Nightly Docker images

on:
schedule:
- cron: "0 0 * * *" # Run daily
workflow_dispatch:
- cron: "0 0 * * *" # Run every day at midnight (UTC)
workflow_dispatch: # Allow running manually on demand

env:
REGISTRY: ghcr.io
Expand All @@ -19,18 +19,21 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Go
uses: actions/setup-go@v5.1.0
with:
go-version: '=1.22.0'

- name: Verify Docker login
run: docker login ${{ env.REGISTRY }} -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }}
- name: Docker login
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push Docker images
run: |
docker --version
docker buildx create --use
docker buildx inspect --bootstrap
make docker-build-and-push TAG=${{ github.sha }} REGISTRY=${{ env.REGISTRY }} ORG=${{ env.ORG }}

0 comments on commit 227057a

Please sign in to comment.