Skip to content

Docker

Docker #105

Workflow file for this run

name: Docker
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
on:
workflow_dispatch:
push:
branches:
- main
paths-ignore:
- README.md
- .github/**
schedule:
- cron: 33 17 * * *
pull_request:
branches:
- main
env:
# Use docker.io for Docker Hub if empty
REGISTRY: ghcr.io
# github.repository as <account>/<repo>
IMAGE_NAME: ${{ github.repository }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Git checkout for Github repository workspace
uses: actions/checkout@v3
- name: Setup QEMU for multiarch builds
uses: docker/setup-qemu-action@v2
- name: Setup Docker buildx
uses: docker/setup-buildx-action@v2
with:
version: 'v0.8.2'
buildkitd-flags: --debug
- name: Login to registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/build-push-action@v3
with:
context: ./
file: ./Dockerfile.arm64
platforms: linux/arm64
push: true
tags: ghcr.io/lipoic/lipoic-discord-bot:latest