trying out gitea actions
This commit is contained in:
parent
04a6c64e69
commit
3e9b3810c9
40
.drone.yml
40
.drone.yml
@ -1,20 +1,20 @@
|
||||
---
|
||||
kind: template
|
||||
load: multiarch-container.yaml
|
||||
data:
|
||||
repo: images/rotate-backups
|
||||
source:
|
||||
repo: https://gitea.jbrumond.me/images/rotate-backups
|
||||
ref: master
|
||||
build_args:
|
||||
- PYTHON_VERSION=3
|
||||
- ALPINE_VERSION=3.18
|
||||
- ROTATE_BACKUPS_VERSION=8.1
|
||||
tags:
|
||||
- "8.1"
|
||||
- "8"
|
||||
platforms:
|
||||
- os: linux
|
||||
arch: arm64
|
||||
- os: linux
|
||||
arch: amd64
|
||||
# ---
|
||||
# kind: template
|
||||
# load: multiarch-container.yaml
|
||||
# data:
|
||||
# repo: images/rotate-backups
|
||||
# source:
|
||||
# repo: https://gitea.jbrumond.me/images/rotate-backups
|
||||
# ref: master
|
||||
# build_args:
|
||||
# - PYTHON_VERSION=3
|
||||
# - ALPINE_VERSION=3.18
|
||||
# - ROTATE_BACKUPS_VERSION=8.1
|
||||
# tags:
|
||||
# - "8.1"
|
||||
# - "8"
|
||||
# platforms:
|
||||
# - os: linux
|
||||
# arch: arm64
|
||||
# - os: linux
|
||||
# arch: amd64
|
||||
|
35
.gitea/workflows/build.yaml
Normal file
35
.gitea/workflows/build.yaml
Normal file
@ -0,0 +1,35 @@
|
||||
name: Build and publish container images
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
build-and-publish:
|
||||
runs-on: ubuntu-latest
|
||||
defaults:
|
||||
run:
|
||||
working-directory: /repo
|
||||
steps:
|
||||
- name: Check out the repo
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v2
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v4
|
||||
env:
|
||||
# see <https://docs.gitea.com/usage/actions/comparison#dockerbuild-push-actionv4>
|
||||
ACTIONS_RUNTIME_TOKEN: ''
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
tags: gitea.jbrumond.me/images/rotate-backups:8,gitea.jbrumond.me/images/rotate-backups:8.1
|
||||
platforms: |
|
||||
linux/amd64
|
||||
linux/arm64
|
Loading…
x
Reference in New Issue
Block a user