git-next/.forgejo/workflows/push-main.yml
Paul Campbell ce77ff9ab0
All checks were successful
Test / build (map[name:stable]) (push) Successful in 10m36s
Test / build (map[name:nightly]) (push) Successful in 11m50s
Release Please / Release-plz (push) Successful in 3m24s
Release Please / Docker image (push) Successful in 5m46s
build: install dbus-dev for release-plz
2025-01-16 21:41:25 +00:00

70 lines
1.7 KiB
YAML

name: Release Please
permissions:
pull-requests: write
contents: write
on:
push:
branches:
- main
env:
CARGO_TERM_COLOR: always
jobs:
release-plz:
name: Release-plz
runs-on: docker
container:
image:
git.kemitix.net/kemitix/rust:v4.0.1
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Run release-plz release-pr
run: release-plz release-pr --backend gitea --git-token ${{ secrets.FORGEJO_TOKEN }}
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
- name: Install dbus-dev
run: apk add dbus-dev
- name: Run release-plz release
run: release-plz release --backend gitea --git-token ${{ secrets.FORGEJO_TOKEN }}
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
docker:
name: Docker image
runs-on: docker
container:
image:
ghcr.io/catthehacker/ubuntu:act-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Build
run: |
docker build . -t git.kemitix.net/${{ env.GITHUB_REPOSITORY }}:latest
docker tag \
git.kemitix.net/${{ env.GITHUB_REPOSITORY }}:latest \
git.kemitix.net/${{ env.GITHUB_REPOSITORY }}:${{ env.GITHUB_REF_NAME }}
- name: Login
run: docker login git.kemitix.net --username kemitix --password ${{ secrets.FORGEJO_TOKEN_WRITE_PACKAGE }}
- name: Publish
run: |
docker push git.kemitix.net/${{ env.GITHUB_REPOSITORY }}:${{ env.GITHUB_REF_NAME }}
docker push git.kemitix.net/${{ env.GITHUB_REPOSITORY }}:latest