push docker image to ghcr on push to main

This commit is contained in:
makaveli10
2024-02-26 18:50:38 +05:30
parent ea64d47899
commit 9699611000
+2 -2
View File
@@ -77,7 +77,7 @@ jobs:
build-and-push-docker-cpu:
needs: [run-tests, check-code-format]
runs-on: ubuntu-22.04
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v2
@@ -103,7 +103,7 @@ jobs:
needs: [run-tests, check-code-format, build-and-push-docker-cpu]
timeout-minutes: 20
runs-on: ubuntu-22.04
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v2