Create tags

This commit is contained in:
Mark Ettema 2021-05-24 10:20:29 +07:00 committed by GitHub
parent a3f58dc59b
commit 01bf36c992
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -25,10 +25,27 @@ jobs:
username: ${{ github.repository_owner }} username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }} password: ${{ secrets.GITHUB_TOKEN }}
-
name: Docker meta
id: meta
uses: docker/metadata-action@v3
with:
images: |
ghcr.io/neothor/steam-openid-connect-provider
tags: |
type=schedule
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=sha
- -
name: Build and push name: Build and push
uses: docker/build-push-action@v2 uses: docker/build-push-action@v2
with: with:
context: src/ context: src/
push: true push: ${{ github.event_name != 'pull_request' }}
tags: ghcr.io/neothor/steam-openid-connect-provider:$(date +%s) tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}