Testar release

This commit is contained in:
2025-05-09 23:37:02 +02:00
parent 39ecd8a708
commit 8b2191bdcc

View File

@@ -12,29 +12,44 @@ jobs:
steps: steps:
- uses: https://github.com/actions/checkout@v4 - uses: https://github.com/actions/checkout@v4
publish: GITHUB_REF_NAME
name: Publish
run-name: ${{ gitea.actor }} is runs ci pipeline
on:
release:
types: [published]
jobs:
test:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: build
if: gitea.ref == 'refs/heads/main'
steps: steps:
- uses: https://github.com/actions/checkout@v4 - run: echo "The release ${{ gitea.release }} was published"
- name: Set up Docker Buildx
uses: https://github.com/docker/setup-buildx-action@v3 # publish:
with: # runs-on: ubuntu-latest
config-inline: | # #needs: build
[registry."gitea.sanplex.tech/sansan"] # if: gitea.ref == 'refs/heads/main'
http = true # steps:
insecure = true # - uses: https://github.com/actions/checkout@v4
- name: Login to Gitea # - name: Set up Docker Buildx
uses: docker/login-action@v2 # uses: https://github.com/docker/setup-buildx-action@v3
with: # with:
registry: gitea.sanplex.tech # config-inline: |
username: ${{ github.repository_owner }} # [registry."gitea.sanplex.tech/sansan"]
password: ${{ secrets.TOKEN }} # http = true
- name: Build and push Docker image # insecure = true
uses: https://github.com/docker/build-push-action@v5 # - name: Login to Gitea
with: # uses: docker/login-action@v2
context: . # with:
file: ./Dockerfile # registry: gitea.sanplex.tech
push: true # username: ${{ github.repository_owner }}
tags: "gitea.sanplex.tech/sansan/musicserver:${{gitea.sha}}, gitea.sanplex.tech/sansan/musicserver:latest" # password: ${{ secrets.TOKEN }}
# - name: Build and push Docker image
# uses: https://github.com/docker/build-push-action@v5
# with:
# context: .
# file: ./Dockerfile
# push: true
# tags: "gitea.sanplex.tech/sansan/musicserver:${{gitea.sha}}, gitea.sanplex.tech/sansan/musicserver:latest"