Fix 17
This commit is contained in:
@@ -6,34 +6,40 @@ on:
|
|||||||
types: [published]
|
types: [published]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
# test:
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- run: echo "The release ${{ gitea.ref }} ${{ gitea.ref_name }} was published"
|
|
||||||
|
|
||||||
# publish:
|
|
||||||
# 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.ref }} ${{ gitea.ref_name }} was published"
|
||||||
# - name: Set up Docker Buildx
|
|
||||||
# uses: https://github.com/docker/setup-buildx-action@v3
|
build:
|
||||||
# with:
|
runs-on: ubuntu-latest
|
||||||
# config-inline: |
|
# if: gitea.ref == 'refs/heads/main'
|
||||||
# [registry."gitea.sanplex.tech/sansan"]
|
steps:
|
||||||
# http = true
|
- uses: https://github.com/actions/checkout@v4
|
||||||
# insecure = true
|
|
||||||
# - name: Login to Gitea
|
publish:
|
||||||
# uses: docker/login-action@v2
|
runs-on: ubuntu-latest
|
||||||
# with:
|
needs: build
|
||||||
# registry: gitea.sanplex.tech
|
#if: gitea.ref == 'refs/heads/main'
|
||||||
# username: ${{ github.repository_owner }}
|
steps:
|
||||||
# password: ${{ secrets.TOKEN }}
|
- uses: https://github.com/actions/checkout@v4
|
||||||
# - name: Build and push Docker image
|
- name: Set up Docker Buildx
|
||||||
# uses: https://github.com/docker/build-push-action@v5
|
uses: https://github.com/docker/setup-buildx-action@v3
|
||||||
# with:
|
with:
|
||||||
# context: .
|
config-inline: |
|
||||||
# file: ./Dockerfile
|
[registry."gitea.sanplex.tech/sansan"]
|
||||||
# push: true
|
http = true
|
||||||
# tags: "gitea.sanplex.tech/sansan/musicserver:${{gitea.sha}}, gitea.sanplex.tech/sansan/musicserver:latest"
|
insecure = true
|
||||||
|
- name: Login to Gitea
|
||||||
|
uses: docker/login-action@v2
|
||||||
|
with:
|
||||||
|
registry: gitea.sanplex.tech
|
||||||
|
username: ${{ github.repository_owner }}
|
||||||
|
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.ref_name}}, gitea.sanplex.tech/sansan/musicserver:latest"
|
||||||
|
|||||||
Reference in New Issue
Block a user