2024-08-04 13:37:10 +01:00
|
|
|
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
|
2025-01-12 13:58:32 +00:00
|
|
|
|
|
|
|
container:
|
|
|
|
image:
|
2025-01-13 23:01:59 +00:00
|
|
|
git.kemitix.net/kemitix/rust:v3.1.0
|
2025-01-12 13:58:32 +00:00
|
|
|
|
2024-08-04 13:37:10 +01:00
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
2025-01-12 13:58:32 +00:00
|
|
|
|
2024-08-04 14:55:49 +01:00
|
|
|
- name: Run release-plz release-pr
|
2025-01-12 13:58:32 +00:00
|
|
|
run: release-plz release-pr --backend gitea --git-token ${{ secrets.FORGEJO_TOKEN }}
|
2024-08-04 14:55:49 +01:00
|
|
|
env:
|
|
|
|
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
|
2025-01-12 13:58:32 +00:00
|
|
|
|
2024-08-04 14:55:49 +01:00
|
|
|
- name: Run release-plz release
|
2025-01-12 13:58:32 +00:00
|
|
|
run: release-plz release --backend gitea --git-token ${{ secrets.FORGEJO_TOKEN }}
|
2024-08-04 13:37:10 +01:00
|
|
|
env:
|
|
|
|
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
|
2025-01-12 13:58:32 +00:00
|
|
|
|
2025-01-12 15:42:33 +00:00
|
|
|
docker:
|
|
|
|
name: Docker image
|
|
|
|
runs-on: docker
|
2025-01-12 16:31:31 +00:00
|
|
|
container:
|
|
|
|
image:
|
2025-01-12 17:59:56 +00:00
|
|
|
ghcr.io/catthehacker/ubuntu:act-22.04
|
2025-01-12 15:42:33 +00:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
|
|
|
|
- name: Build
|
|
|
|
run: |
|
2025-01-12 18:43:30 +00:00
|
|
|
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 }}
|
2025-01-12 15:42:33 +00:00
|
|
|
|
|
|
|
- name: Login
|
2025-01-12 19:57:49 +00:00
|
|
|
run: docker login git.kemitix.net --username kemitix --password ${{ secrets.FORGEJO_TOKEN_WRITE_PACKAGE }}
|
2025-01-12 15:42:33 +00:00
|
|
|
|
|
|
|
- name: Publish
|
|
|
|
run: |
|
2025-01-12 18:43:30 +00:00
|
|
|
docker push git.kemitix.net/${{ env.GITHUB_REPOSITORY }}:${{ env.GITHUB_REF_NAME }}
|
|
|
|
docker push git.kemitix.net/${{ env.GITHUB_REPOSITORY }}:latest
|
2025-01-12 15:42:33 +00:00
|
|
|
|