Skip to content

Explicitly request event details after API change (#4) #19

Explicitly request event details after API change (#4)

Explicitly request event details after API change (#4) #19

Workflow file for this run

name: Deploy Docker
on: push
jobs:
main:
runs-on: ubuntu-latest
steps:
- name: Log in to the Container registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Compute Labels
if: ${{ github.event_name == 'push' }}
id: meta
uses: docker/metadata-action@v4
with:
images: ghcr.io/kalkspace/discourse-ical
# generate Docker tags based on the following events/attributes
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=sha
labels: |
org.opencontainers.image.url=https://github.com/kalkspace/discourse-ical
org.opencontainers.image.source=https://github.com/kalkspace/discourse-ical
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
push: true
platforms: linux/amd64
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}