git-next/.forgejo/workflows/push-main.yml
Paul Campbell dd00371e97
Some checks failed
Test / build (map[name:nightly]) (push) Successful in 4m50s
Test / build (map[name:stable]) (push) Successful in 6m46s
Release Please / Release-plz (push) Successful in 45s
Release Please / Docker image (push) Failing after 2m51s
build: push-main use act-based ubuntu to publish docker image
2025-01-12 18:00:43 +00:00

65 lines
1.6 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:v3.0.0
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: 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/kemitix/rust:latest
docker tag git.kemitix.net/kemitix/rust:latest git.kemitix.net/kemitix/rust:${{ env.GITHUB_REF_NAME }}
- name: Login
run: docker login --username kemitix --password ${{ secrets.FORGE_USER_PASSWORD }} git.kemitix.net
- name: Publish
run: |
docker push git.kemitix.net/kemitix/rust:${{ env.GITHUB_REF_NAME }}
docker push git.kemitix.net/kemitix/rust:latest