diff --git a/.drone.yml b/.drone.yml index b1e8964..0648ead 100644 --- a/.drone.yml +++ b/.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 diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml new file mode 100644 index 0000000..020b4fc --- /dev/null +++ b/.gitea/workflows/build.yaml @@ -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 + 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 \ No newline at end of file