Skip to content

migrate renovate config #32

migrate renovate config

migrate renovate config #32

name: Build latest docker image
on:
workflow_dispatch:
push:
branches: ['main']
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
build:
runs-on: ubuntu-latest
#--- Set permissions to ephemeral GITHUB_TOKEN for job actions
permissions:
contents: read
packages: write
steps:
- name: Checkout and download repository to workflow runner
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Set up docker builder
uses: docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 # v3
- name: Login to github container registry
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push image to github container registry
uses: docker/build-push-action@471d1dc4e07e5cdedd4c2171150001c434f0b7a4 # v6
with:
context: .
load: true
push: true
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest