-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into flux_jsr_check
- Loading branch information
Showing
5 changed files
with
33 additions
and
65 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,26 +4,34 @@ name: Docker Image Build and Push | |
#https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#permissions | ||
|
||
|
||
|
||
on: | ||
schedule: | ||
- cron: "0 0 */7 * *" # every 7 days | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- "Dockerfile" | ||
- "devtools/Dockerfile_rmgpy" | ||
- ".github/workflows/docker_build.yml" | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
branches: | ||
- main | ||
paths: | ||
- "./Dockerfile" | ||
- "Dockerfile" | ||
- "devtools/Dockerfile_rmgpy" | ||
- ".github/workflows/docker_build.yml" | ||
types: [opened, synchronize, reopened, ready_for_review] | ||
#workflow_dispatch: # Add this line to enable manual trigger | ||
|
||
permissions: | ||
contents: read | ||
pull-requests: write | ||
|
||
jobs: | ||
ci-check: | ||
if: github.event_name == 'pull_request' | ||
if: github.event_name == 'pull_request' || (github.event_name == 'push' && github.ref != 'refs/heads/main') | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Free Disk Space (Ubuntu) | ||
|
@@ -42,28 +50,15 @@ jobs: | |
swap-storage: false | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
# Add steps for CI checks of the Dockerfile | ||
- name: Login to Docker Hub | ||
uses: docker/[email protected] | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
- name: Set up Docker Buildx | ||
uses: docker/[email protected] | ||
- name: Build RMG-Py | ||
uses: docker/[email protected] | ||
with: | ||
context: . | ||
file: ./devtools/Dockerfile_rmgpy | ||
push: false | ||
tags: ${{ secrets.DOCKERHUB_USERNAME }}/rmgpy:latest | ||
- name: Build T3 | ||
uses: docker/[email protected] | ||
# Add steps for CI checks of the Dockerfile | ||
- name: Build Docker Image (No Push) | ||
uses: docker/[email protected] | ||
with: | ||
context: . | ||
file: ./Dockerfile | ||
push: false | ||
tags: ${{ secrets.DOCKERHUB_USERNAME }}/thetandemtool-t3:latest | ||
|
||
build-and-push: | ||
if: github.event_name == 'push' && github.ref == 'refs/heads/main' | ||
|
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
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
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