39 lines
984 B
YAML
39 lines
984 B
YAML
name: ci
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- 'main'
|
|
|
|
jobs:
|
|
docker:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
# -
|
|
# name: Set up QEMU
|
|
# uses: docker/setup-qemu-action@v3
|
|
-
|
|
name: Set up QEMU
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y binfmt-support
|
|
curl -L -o /tmp/qemu.sh 'https://raw.githubusercontent.com/qemu/qemu/master/scripts/qemu-binfmt-conf.sh'
|
|
chmod +x /tmp/qemu.sh
|
|
/tmp/qemu.sh --debian
|
|
-
|
|
name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
-
|
|
name: Login to Docker Hub
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: https://git.kaizer.cloud
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
-
|
|
name: Build and push
|
|
uses: docker/build-push-action@v5
|
|
with:
|
|
push: true
|
|
tags: alvaro/lol-analytics:latest
|