40 lines
1.1 KiB
YAML
40 lines
1.1 KiB
YAML
name: "Build EchoIP"
|
|
on:
|
|
push:
|
|
branches:
|
|
- "main"
|
|
schedule:
|
|
- cron: '0 12 * * *'
|
|
jobs:
|
|
build:
|
|
name: "Build EchoIP"
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Install Docker
|
|
run: curl -fsSL https://get.docker.com | sh
|
|
- name: Set up QEMU
|
|
uses: https://github.com/docker/setup-qemu-action@v2
|
|
- name: Set up Docker Buildx
|
|
uses: https://github.com/docker/setup-buildx-action@v2
|
|
- name: "Login to Private Container Registry"
|
|
uses: https://github.com/docker/login-action@v2
|
|
with:
|
|
registry: git.ponz.io
|
|
username: ${{ gitea.repository_owner }}
|
|
password: ${{ secrets.REG_TOKEN }}
|
|
|
|
- name: "Checkout"
|
|
uses: https://github.com/sudosubin/git-clone-action@v1
|
|
with:
|
|
repository: mpolden/echoip
|
|
platform: "github"
|
|
|
|
- name: Build and push
|
|
uses: https://github.com/docker/build-push-action@v4
|
|
with:
|
|
context: /workspace/elia/buildechoip/
|
|
platforms: linux/amd64
|
|
push: true
|
|
tags: |
|
|
git.ponz.io/elia/echoip:latest
|