From cb115635ed8a0bab6d79146dd386798220b920dd Mon Sep 17 00:00:00 2001 From: OCram85 Date: Wed, 12 Jul 2023 11:10:24 +0200 Subject: [PATCH] add gitea release action (#7) #### :book: Summary - testing Gitea Actions to create an new release when pushing a tag #### :bookmark_tabs: Test Plan > :bulb: Select your test plan for the code changes. - [x] CI pipeline tests - [ ] Custom test - [ ] No test plan ##### Details / Justification #### :books: Additional Notes Co-authored-by: OCram85 Reviewed-on: https://gitea.ocram85.com/OCram85/swarmproxy/pulls/7 --- .gitea/workflows/release.yaml | 22 ++++++++++++++++++++++ .gitea/workflows/test.yaml.disabled | 29 ----------------------------- 2 files changed, 22 insertions(+), 29 deletions(-) create mode 100644 .gitea/workflows/release.yaml delete mode 100644 .gitea/workflows/test.yaml.disabled diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml new file mode 100644 index 0000000..16dd375 --- /dev/null +++ b/.gitea/workflows/release.yaml @@ -0,0 +1,22 @@ +name: release + +on: + push: + tags: + - '*' + +jobs: + release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: Use Go Action + id: use-go-action + uses: actions/release-action@main + with: + #files: -| + api_key: '${{ secrets.TOKEN }}' + #title: + #body: diff --git a/.gitea/workflows/test.yaml.disabled b/.gitea/workflows/test.yaml.disabled deleted file mode 100644 index c58dac3..0000000 --- a/.gitea/workflows/test.yaml.disabled +++ /dev/null @@ -1,29 +0,0 @@ -name: test - -run-name: docker pipeline - -on: [ 'push' ] - -jobs: - docker: - runs-on: ubuntu-latest - container: - image: catthehacker/ubuntu:act-latest - steps: - - - name: Set up Docker Buildx - uses: actions/setup-buildx-action@v2 - #- - # name: Login to Gitea Package Registry - # uses: actions/login-action@v2 - # with: - # registry: gitea.ocram85.com - # username: ${{ secrets.USERNAME }} - # password: ${{ secrets.TOKEN }} - - - name: Build and push - uses: actions/build-push-action@v4 - with: - push: false - #tags: gitea.ocram85.com/ocram85/swarmproxy:next - tags: ocram85/swarmproxy:test