ci: update default branch

This commit is contained in:
Peter Evans
2021-05-12 17:12:31 +09:00
parent 041efd9199
commit 95dee52e1c
4 changed files with 10 additions and 10 deletions

View File

@@ -2,7 +2,7 @@ name: Publish Docker Image
on:
push:
branches:
- master
- main
tags:
- v*
env:
@@ -25,7 +25,7 @@ jobs:
[[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//')
# Use Docker `latest` tag convention
[ "$VERSION" == "master" ] && VERSION=latest
[ "$VERSION" == "main" ] && VERSION=latest
# Build and tag image
docker build . --file Dockerfile --tag $IMAGE_NAME --label "org.opencontainers.image.version=$VERSION"