-
-
Notifications
You must be signed in to change notification settings - Fork 2
57 lines (49 loc) · 1.35 KB
/
docker-image.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
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