Skip to content
Merged
Changes from all commits
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
31 changes: 25 additions & 6 deletions .github/workflows/ats-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,15 @@ on:
- '**'
push:
branches:
- '**'
- master
tags-ignore:
- ats-*
pull_request:
branches:
- master

jobs:
build:
build:
strategy:
matrix:
os: [ ubuntu-latest, ubuntu-24.04-arm ]
Expand All @@ -28,7 +31,11 @@ jobs:
id: branch
working-directory: Docker
run: |
echo "ATS_BRANCH=$GITHUB_REF_NAME" >> $GITHUB_ENV
if [ "${{ github.event_name }}" = "pull_request" ]; then
echo "ATS_BRANCH=${{ github.event.pull_request.head.ref }}" >> $GITHUB_ENV
else
echo "ATS_BRANCH=$GITHUB_REF_NAME" >> $GITHUB_ENV
fi
- name: Does Amanzi branch of the same name exist?
id: amanzi_branch
run: |
Expand Down Expand Up @@ -103,7 +110,11 @@ jobs:
id: branch
working-directory: Docker
run: |
echo "ATS_BRANCH=$GITHUB_REF_NAME" >> $GITHUB_ENV
if [ "${{ github.event_name }}" = "pull_request" ]; then
echo "ATS_BRANCH=${{ github.event.pull_request.head.ref }}" >> $GITHUB_ENV
else
echo "ATS_BRANCH=$GITHUB_REF_NAME" >> $GITHUB_ENV
fi
- name: Filter the branch name to generate a tag for Docker
id: tag
run: |
Expand Down Expand Up @@ -138,7 +149,11 @@ jobs:
id: branch
working-directory: Docker
run: |
echo "ATS_BRANCH=$GITHUB_REF_NAME" >> $GITHUB_ENV
if [ "${{ github.event_name }}" = "pull_request" ]; then
echo "ATS_BRANCH=${{ github.event.pull_request.head.ref }}" >> $GITHUB_ENV
else
echo "ATS_BRANCH=$GITHUB_REF_NAME" >> $GITHUB_ENV
fi
- name: Filter the branch name to generate a tag for Docker
id: tag
run: |
Expand Down Expand Up @@ -169,7 +184,11 @@ jobs:
- name: Filter the branch name to generate a tag for Docker
id: tag
run: |
echo "ATS_BRANCH_TAG=$(echo $GITHUB_REF_NAME | sed -e 's/\//--/g')" >> $GITHUB_ENV
if [ "${{ github.event_name }}" = "pull_request" ]; then
echo "ATS_BRANCH_TAG=$(echo ${{ github.event.pull_request.head.ref }} | sed -e 's/\//--/g')" >> $GITHUB_ENV
else
echo "ATS_BRANCH_TAG=$GITHUB_REF_NAME | sed -e 's/\//--/g')" >> $GITHUB_ENV
fi
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
Expand Down