swarmproxy/.gitea/workflows/ci.yaml
OCram85 3161d332af
All checks were successful
ci / docker (push) Successful in 28s
use absolute urls for action calls (#10)
#### 📖 Summary

- try to use absolute urls for internal actions. -> Testing renovate github-action workaround with this

#### 📑 Test Plan

> 💡 Select your test plan for the code changes.

- [x] CI pipeline tests
- [ ] Custom test
- [ ] No test plan

##### Details / Justification

<!-- Add your test details or justification for missing tests here. -->

#### 📚 Additional Notes

<!-- A place for additional detail notes. -->

Co-authored-by: OCram85 <marco.blessing@googlemail.com>
Reviewed-on: #10
2023-07-12 14:19:26 +02:00

50 lines
1.3 KiB
YAML

name: ci
on:
push:
branches:
- 'main'
tags:
- 'v*'
pull_request:
branches:
- 'main'
jobs:
docker:
runs-on: ubuntu-latest
container:
image: catthehacker/ubuntu:act-latest
steps:
-
name: Docker meta
id: meta
uses: https://gitea.ocram85.com/actions/metadata-action@v4
with:
images: |
gitea.ocram85.com/ocram85/swarmproxy
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
-
name: Set up Docker Buildx
uses: https://gitea.ocram85.com/actions/setup-buildx-action@v2
-
name: Login to Gitea Package Registry
uses: https://gitea.ocram85.com/actions/login-action@v2
with:
registry: gitea.ocram85.com
username: ${{ secrets.USERNAME }}
#password: ${{ secrets.PASSWORD }}
password: ${{ secrets.TOKEN }}
-
name: Build and push
uses: https://gitea.ocram85.com/actions/build-push-action@v4
with:
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}