0
0
Fork 0
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:
Adrian Dvergsdal 2020-07-17 02:12:20 +02:00
parent 45920988a9
commit aa8e5a8b6d
No known key found for this signature in database
GPG key ID: C1E9E2D9552A42D2

View file

@ -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