Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(docker): remove build main action #4747

Closed
wants to merge 11 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
push every 15 days
Signed-off-by: Oguz Ozturk <oguzkaganozt@gmail.com>
oguzkaganozt committed Jun 24, 2024
commit 3423d0db3f74b1826b2fdfc307dddf43535cdc88
5 changes: 2 additions & 3 deletions .github/actions/docker-build-and-push/action.yaml
Original file line number Diff line number Diff line change
@@ -16,7 +16,7 @@ inputs:
required: false
allow-push:
description: ""
default: "true"
default: "false"
required: false

runs:
@@ -108,8 +108,7 @@ runs:
password: ${{ github.token }}

- name: Build and Push to GitHub Container Registry
if: ${{ github.event_name == 'push' ||
github.event_name == 'schedule' ||
if: ${{ github.event_name == 'schedule' ||
(github.event_name == 'workflow_dispatch' && github.event.inputs.artifacts-destination == 'registry') }}
uses: docker/bake-action@v5
with:
5 changes: 3 additions & 2 deletions .github/workflows/docker-build.yaml
oguzkaganozt marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -49,10 +49,11 @@ jobs:
additional-tag-suffix: -cuda
steps:
- name: Check if push day
if: ${{ github.event_name == 'schedule' }}
run: |
if [ $(date +'%d') -eq 01 ] || [ $(date +'%d') -eq 15 ]; then echo "IS_PUSH_DAY=true" >> $GITHUB_ENV; else echo "IS_PUSH_DAY=false" >> $GITHUB_ENV; fi
if: ${{ github.event_name == 'schedule' }}

echo "Day of the month: $(date +'%d')"
- name: Check out repository
uses: actions/checkout@v4