ci: migrate to forgejo
This commit is contained in:
parent
08108ef71a
commit
440ca7563f
3 changed files with 25 additions and 15 deletions
|
@ -19,7 +19,7 @@ jobs:
|
||||||
- name: Setup ssl
|
- name: Setup ssl
|
||||||
run: wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2.23_amd64.deb && sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2.23_amd64.deb
|
run: wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2.23_amd64.deb && sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2.23_amd64.deb
|
||||||
|
|
||||||
- uses: erlef/setup-beam@v1
|
- uses: https://github.com/erlef/setup-beam@v1
|
||||||
env:
|
env:
|
||||||
ImageOS: ubuntu24
|
ImageOS: ubuntu24
|
||||||
with:
|
with:
|
|
@ -18,7 +18,7 @@ jobs:
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: git.vavakado.xyz # Replace with your Docker registry URL
|
registry: git.vavakado.xyz # Replace with your Docker registry URL
|
||||||
username: ${{ gitea.actor }} # The actor who triggered the action
|
username: ${{ forgejo.actor }} # The actor who triggered the action
|
||||||
password: ${{ secrets.REGISTRY_TOKEN }} # Your registry token secret
|
password: ${{ secrets.REGISTRY_TOKEN }} # Your registry token secret
|
||||||
|
|
||||||
- name: Build Docker Image
|
- name: Build Docker Image
|
|
@ -21,7 +21,7 @@ jobs:
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: git.vavakado.xyz # Replace with your Docker registry URL
|
registry: git.vavakado.xyz # Replace with your Docker registry URL
|
||||||
username: ${{ gitea.actor }} # The actor who triggered the action
|
username: ${{ forgejo.actor }} # The actor who triggered the action
|
||||||
password: ${{ secrets.REGISTRY_TOKEN }} # Your registry token secret
|
password: ${{ secrets.REGISTRY_TOKEN }} # Your registry token secret
|
||||||
|
|
||||||
- name: Create Git Tag
|
- name: Create Git Tag
|
||||||
|
@ -29,19 +29,29 @@ jobs:
|
||||||
git tag ${{ github.event.inputs.version }}
|
git tag ${{ github.event.inputs.version }}
|
||||||
git push origin ${{ github.event.inputs.version }}
|
git push origin ${{ github.event.inputs.version }}
|
||||||
|
|
||||||
|
# - name: Create Release
|
||||||
|
# run: |
|
||||||
|
# curl -X POST -H "Authorization: token ${{ secrets.RELEASE_TOKEN }}" \
|
||||||
|
# -H "Content-Type: application/json" \
|
||||||
|
# -d '{
|
||||||
|
# "tag_name": "${{ github.event.inputs.version }}",
|
||||||
|
# "target_commitish": "main", # Change if your default branch is different
|
||||||
|
# "name": "${{ github.event.inputs.version }}",
|
||||||
|
# "body": "Release for version ${{ github.event.inputs.version }}",
|
||||||
|
# "draft": false,
|
||||||
|
# "prerelease": false
|
||||||
|
# }' \
|
||||||
|
# https://git.vavakado.xyz/api/v1/repos/${{ gitea.repository_owner }}/${{ gitea.repository }}/releases
|
||||||
|
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
run: |
|
uses: actions/forjego-release@v2
|
||||||
curl -X POST -H "Authorization: token ${{ secrets.RELEASE_TOKEN }}" \
|
with:
|
||||||
-H "Content-Type: application/json" \
|
direction: upload
|
||||||
-d '{
|
tag: ${{ github.event.inputs.version }}
|
||||||
"tag_name": "${{ github.event.inputs.version }}",
|
name: ${{ github.event.inputs.version }}
|
||||||
"target_commitish": "main", # Change if your default branch is different
|
token: ${{ secrets.RELEASE_TOKEN }}
|
||||||
"name": "${{ github.event.inputs.version }}",
|
release-notes-assistant: true
|
||||||
"body": "Release for version ${{ github.event.inputs.version }}",
|
release-dir: ./rel/
|
||||||
"draft": false,
|
|
||||||
"prerelease": false
|
|
||||||
}' \
|
|
||||||
https://git.vavakado.xyz/api/v1/repos/${{ gitea.repository_owner }}/${{ gitea.repository }}/releases
|
|
||||||
|
|
||||||
- name: Build Docker Image
|
- name: Build Docker Image
|
||||||
run: |
|
run: |
|
Loading…
Reference in a new issue