Skip to content

Commit

Permalink
Build on main push
Browse files Browse the repository at this point in the history
  • Loading branch information
tayden committed Nov 5, 2024
1 parent 64ca32e commit fb4b3a7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Docker publish

on:
push:
# Publish `$default-branch` as Docker `latest` image.
# Publish `main` as Docker `latest` image.
branches:
- $default-branch
- main

# Publish `v1.2.3` tags as releases.
tags:
Expand Down Expand Up @@ -71,7 +71,7 @@ jobs:
[[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//')
# Use Docker `latest` tag convention
[ "$VERSION" == "$default-branch" ] && VERSION=latest
[ "$VERSION" == "main" ] && VERSION=latest
echo IMAGE_ID=$IMAGE_ID
echo VERSION=$VERSION
Expand Down

0 comments on commit fb4b3a7

Please sign in to comment.