test build container with more perms
This commit is contained in:
parent
b42b5aaa66
commit
3b7c0b2a7b
1 changed files with 39 additions and 41 deletions
|
|
@ -37,44 +37,42 @@ jobs:
|
|||
md5sum: true
|
||||
files: |-
|
||||
client/dist/client.zip
|
||||
# build_server_binary:
|
||||
# runs-on: ubuntu-latest
|
||||
# permissions:
|
||||
# packages: write
|
||||
# steps:
|
||||
# - uses: actions/checkout@v4
|
||||
# - run: git fetch --unshallow --quiet --tags --force
|
||||
# - name: Set up QEMU
|
||||
# uses: docker/setup-qemu-action@v3
|
||||
# - uses: docker/setup-buildx-action@v3
|
||||
# - uses: docker/metadata-action@v5
|
||||
# id: meta
|
||||
# with:
|
||||
# images: pakin/tb-mng-server-app
|
||||
# tags: |
|
||||
# type=semver,pattern={{version}}
|
||||
# type=semver,pattern=latest
|
||||
# type=semver,pattern={{major}}
|
||||
# type=semver,pattern={{major}}.{{minor}}
|
||||
# type=semver,pattern={{major}}.{{minor}}.{{patch}}
|
||||
# - uses: docker/login-action@v3
|
||||
# with:
|
||||
# registry: pakin-inspiron-15-3530.tail360bd.ts.net
|
||||
# username: ${{ secrets.DOCKER_USERNAME }}
|
||||
# password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
# # - name: Build and push
|
||||
# # uses: docker/build-push-action@v6
|
||||
# # env:
|
||||
# # ACTIONS_RUNTIME_TOKEN: ${{ secrets.ENV_GITEA_TOKEN }}
|
||||
# # GITHUB_TOKEN: ''
|
||||
# # with:
|
||||
# # context: ./server
|
||||
# # push: true
|
||||
# # tags: ${{ steps.meta.outputs.tags }}
|
||||
# # labels: ${{ steps.meta.outputs.labels }}
|
||||
# - name: Build and push
|
||||
# run: |
|
||||
# cd server
|
||||
# docker build -t pakin-inspiron-15-3530.tail360bd.ts.net/pakin/tb-mng-server-app:latest -t pakin-inspiron-15-3530.tail360bd.ts.net/pakin/tb-mng-server-app:{{ inputs.version }} .
|
||||
# docker push pakin/tb-mng-server-app:latest
|
||||
# docker push pakin/tb-mng-server-app:{{ inputs.version }}
|
||||
build_server_binary:
|
||||
env:
|
||||
ACTIONS_RUNTIME_TOKEN: ${{ secrets.ENV_GITEA_TOKEN }}
|
||||
GITHUB_TOKEN: ${{ secrets.ENV_GITEA_TOKEN }}
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
packages: write
|
||||
activitypub: write
|
||||
admin: write
|
||||
repository: write
|
||||
user: write
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- run: git fetch --unshallow --quiet --tags --force
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v3
|
||||
- uses: docker/setup-buildx-action@v3
|
||||
- uses: docker/metadata-action@v5
|
||||
id: meta
|
||||
with:
|
||||
images: pakin/tb-mng-server-app
|
||||
tags: |
|
||||
type=semver,pattern={{version}}
|
||||
type=semver,pattern=latest
|
||||
type=semver,pattern={{major}}
|
||||
type=semver,pattern={{major}}.{{minor}}
|
||||
type=semver,pattern={{major}}.{{minor}}.{{patch}}
|
||||
- uses: docker/login-action@v3
|
||||
with:
|
||||
registry: pakin-inspiron-15-3530.tail360bd.ts.net
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: ./server
|
||||
push: true
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue