mirror of
https://github.com/atmoz/sftp.git
synced 2024-11-17 12:51:33 -05:00
Set debian tag when on master branch
This commit is contained in:
parent
45920988a9
commit
aa8e5a8b6d
1 changed files with 11 additions and 1 deletions
12
.github/workflows/docker-image.yml
vendored
12
.github/workflows/docker-image.yml
vendored
|
@ -36,6 +36,16 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Define tags
|
||||||
|
id: define_tags
|
||||||
|
run: |
|
||||||
|
if [ "$GITHUB_REF" == "refs/heads/master" ]; then
|
||||||
|
echo "::set-output name=tags::debian"
|
||||||
|
else
|
||||||
|
echo "::set-output name=tags::"
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Build and push Docker images
|
- name: Build and push Docker images
|
||||||
uses: docker/build-push-action@v1.1.0
|
uses: docker/build-push-action@v1.1.0
|
||||||
with:
|
with:
|
||||||
|
@ -48,7 +58,7 @@ jobs:
|
||||||
# Docker repository to tag the image with
|
# Docker repository to tag the image with
|
||||||
repository: atmoz/sftp
|
repository: atmoz/sftp
|
||||||
# Comma-delimited list of tags. These will be added to the registry/repository to form the image's tags
|
# Comma-delimited list of tags. These will be added to the registry/repository to form the image's tags
|
||||||
#tags: # optional
|
tags: ${{ steps.define_tags.outputs.tags }} # optional
|
||||||
# Automatically tags the built image with the git reference as per the readme
|
# Automatically tags the built image with the git reference as per the readme
|
||||||
tag_with_ref: true # optional
|
tag_with_ref: true # optional
|
||||||
# Automatically tags the built image with the git short SHA as per the readme
|
# Automatically tags the built image with the git short SHA as per the readme
|
||||||
|
|
Loading…
Reference in a new issue