Skip to content

[pre-commit.ci] pre-commit autoupdate (#4) #5

[pre-commit.ci] pre-commit autoupdate (#4)

[pre-commit.ci] pre-commit autoupdate (#4) #5

Workflow file for this run

name: Build image
on:
push:
branches:
- main
env:
REGISTRY: ghcr.io
jobs:
build-image:
name: Build image
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
logout: false
- name: Build image
uses: docker/build-push-action@v2
env:
IMAGE_TAG: ${{ env.REGISTRY }}/${{ github.repository }}:latest
with:
context: .
push: true
tags: ${{ env.IMAGE_TAG }}
labels: |
org.opencontainers.image.source=${{ github.server_url }}/${{ github.repository }}