2024-11-04 19:44:42 +02:00
|
|
|
name: build docker image
|
|
|
|
|
|
|
|
on:
|
2024-11-15 13:29:14 +02:00
|
|
|
- push
|
2024-11-04 19:44:42 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
docker-build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
container:
|
|
|
|
image: catthehacker/ubuntu:act-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Set up QEMU
|
|
|
|
uses: docker/setup-qemu-action@v3
|
|
|
|
|
|
|
|
- name: Set up Docker Buildx
|
|
|
|
uses: docker/setup-buildx-action@v3
|
|
|
|
|
|
|
|
- name: Login to GitHub Container Registry
|
|
|
|
uses: docker/login-action@v3
|
|
|
|
with:
|
|
|
|
registry: gitea.stuzer.link
|
|
|
|
username: ${{ gitea.repository_owner }}
|
|
|
|
password: ${{ secrets.DOCKER_REGISTRY_TOKEN }}
|
|
|
|
|
|
|
|
- name: Build and push
|
|
|
|
uses: docker/build-push-action@v6
|
|
|
|
with:
|
|
|
|
platforms: linux/amd64
|
|
|
|
push: true
|
|
|
|
build-args: |
|
|
|
|
APP_URL="${{ vars.APP_URL }}"
|
2024-11-15 13:29:14 +02:00
|
|
|
tags: gitea.stuzer.link/stuzer05/monobank-firefly3-bot:latest
|
|
|
|
cache-from: type=registry,ref=gitea.stuzer.link/stuzer05/monobank-firefly3-bot:latest
|
2024-11-04 19:44:42 +02:00
|
|
|
cache-to: type=inline
|