Skip to content

Add renovate github action #9

Add renovate github action

Add renovate github action #9

Workflow file for this run

name: docker-build
on:
push:
tags:
- "[0-9]+\\.[0-9]+\\.[0-9]+"
branches:
- master
pull_request:
branches:
- master
release:
types:
- published
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
docker-build:
name: Build and push container images
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@v2
- name: Export git tag
uses: tenhaus/get-release-or-tag@v2
id: tag
- name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
# default branch event
type=edge,branch=${{ github.event.repository.default_branch }},priority=700
type=sha,format=long,branch=${{ github.event.repository.default_branch }},priority=100
# tag event
type=semver,pattern={{version}},event=tag,priority=900
type=semver,pattern={{major}},event=tag,priority=850
type=semver,pattern={{major}}.{{minor}},event=tag,priority=800
type=sha,format=long,event=tag,priority=100
# pr event
type=ref,event=pr,priority=600
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to ghcr.io
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build image
uses: docker/build-push-action@v2
with:
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}