fix(ci): Correct Path for github/gitea actions workflows 🐛
All checks were successful
CI / build (push) Successful in 11s
CI / release (release) Successful in 6m22s

This commit is contained in:
2024-07-22 22:28:54 +12:00
parent 5a4fe3fd64
commit 17b36c7113
2 changed files with 0 additions and 0 deletions

24
.github/workflows/build.yml vendored Normal file
View File

@@ -0,0 +1,24 @@
name: CI
on:
push:
branches:
- "**"
tags:
- "!**"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Create release if required
run: |
/usr/local/bin/semantic-release --version-file \
--changelog .generated-go-semantic-release-changelog.md \
--hooks exec \
--provider=gitea
env:
GITEA_TOKEN: ${{ secrets.G_TOKEN }}
GITEA_HOST: ${{ secrets.G_SERVER_URL}}

38
.github/workflows/release.yml vendored Normal file
View File

@@ -0,0 +1,38 @@
name: CI
on:
release:
types: [published]
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Get Vars
run: |
echo ${GITHUB_REF_NAME}
echo ${GITHUB_REF_TYPE}
- uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Container Registry
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v6
with:
platforms: >
linux/amd64,
linux/arm64
push: true
tags: >
${{ secrets.DOCKERHUB_USERNAME }}/ubuntu:act_gitea-latest,
${{ secrets.DOCKERHUB_USERNAME }}/ubuntu:act_gitea-${{ env.GITHUB_REF_NAME }}