This project was a workaround. Please use https://github.com/MP-ES/build-push-action instead.
Workaround composite action to obtain an image tag in an expected format of on-premises k8s-deploy while actions/runner#646 is not ready.
- name: Generate image tag
id: image_tag
uses: MP-ES/generate-image-tag-action@v1
with:
# Server address of Docker registry. If not set then will default to Docker Hub
registry: registry.domain.com
# The name of docker image
image: "service"
Then, you can do:
- name: Build and Push
uses: docker/build-push-action@v2
with:
tags: "${{ steps.image_tag.outputs.tag }}"
Following outputs are available:
Name | Type | Description |
---|---|---|
tag |
String | Tag that must to be assigned to docker image |