(ci): docker build: add sha tag type
@@ -43,12 +43,14 @@ jobs:
tags: |
type=semver,pattern={{major}}.{{minor}}.{{patch}}
type=semver,pattern={{major}}.{{minor}}
+ type=sha
- name: Build and push docker image with edge tag
if: github.event_name == 'push'
uses: docker/build-push-action@v2
with:
- labels: ${{ steps.meta.outputs.labels }}
+ context: .
+ labels: ${{ steps.meta.outputs.labels }},org.opencontainers.image.version=edge
tags: edge
push: true
@@ -56,6 +58,7 @@ jobs:
if: github.event_name == 'release'
uses: docker/build-push-action@v2
with:
+ context: .
labels: ${{ steps.meta.outputs.labels }}
tags: ${{ steps.meta.outputs.tags }}
push: ${{ startsWith(github.ref, 'refs/tags/') }}
