Skip to content

Commit

Permalink
Rename master branch to main (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
pal03377 committed Nov 20, 2023
1 parent c5a5f96 commit b488a0c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/dockerimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
if: github.ref == 'refs/heads/master'
if: github.ref == 'refs/heads/main'
- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
Expand All @@ -46,7 +46,7 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
if: github.ref == 'refs/heads/master'
if: github.ref == 'refs/heads/main'
- name: Build and Push the athene-segmentation Docker image
run: ./.github/workflows/scripts/dockerimage.sh "segmentation"

Expand All @@ -65,7 +65,7 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
if: github.ref == 'refs/heads/master'
if: github.ref == 'refs/heads/main'
- name: Build and Push the athene-embedding Docker image
run: ./.github/workflows/scripts/dockerimage.sh "embedding"
- name: Run unittests for embedding-component
Expand All @@ -86,7 +86,7 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
if: github.ref == 'refs/heads/master'
if: github.ref == 'refs/heads/main'
- name: Build and Push the athene-clustering Docker image
run: ./.github/workflows/scripts/dockerimage.sh "clustering"
- name: Run unittests for clustering-component
Expand All @@ -107,6 +107,6 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
if: github.ref == 'refs/heads/master'
if: github.ref == 'refs/heads/main'
- name: Build and Push the athene-tracking Docker image
run: ./.github/workflows/scripts/dockerimage.sh "tracking"
4 changes: 2 additions & 2 deletions .github/workflows/scripts/dockerimage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ echo "INFO: Branch-tag and Push image additionally as ${IMAGE}:${GITHUB_REF##*/}
docker tag ${IMAGE}:${TAG} ${IMAGE}:${GITHUB_REF##*/}
docker push ${IMAGE}:${GITHUB_REF##*/}

# Tag and Push as latest if building on master-branch
if [ "${GITHUB_REF##*/}" = "master" ]; then
# Tag and Push as latest if building on main-branch
if [ "${GITHUB_REF##*/}" = "main" ]; then
echo "INFO: Tag and Push image additionally as ${IMAGE}:latest"
docker tag ${IMAGE}:${TAG} ${IMAGE}:latest
docker push ${IMAGE}:latest
Expand Down

0 comments on commit b488a0c

Please sign in to comment.