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
|
md5sum: true
|
||||||
files: |-
|
files: |-
|
||||||
client/dist/client.zip
|
client/dist/client.zip
|
||||||
# build_server_binary:
|
build_server_binary:
|
||||||
# runs-on: ubuntu-latest
|
env:
|
||||||
# permissions:
|
ACTIONS_RUNTIME_TOKEN: ${{ secrets.ENV_GITEA_TOKEN }}
|
||||||
# packages: write
|
GITHUB_TOKEN: ${{ secrets.ENV_GITEA_TOKEN }}
|
||||||
# steps:
|
runs-on: ubuntu-latest
|
||||||
# - uses: actions/checkout@v4
|
permissions:
|
||||||
# - run: git fetch --unshallow --quiet --tags --force
|
packages: write
|
||||||
# - name: Set up QEMU
|
activitypub: write
|
||||||
# uses: docker/setup-qemu-action@v3
|
admin: write
|
||||||
# - uses: docker/setup-buildx-action@v3
|
repository: write
|
||||||
# - uses: docker/metadata-action@v5
|
user: write
|
||||||
# id: meta
|
steps:
|
||||||
# with:
|
- uses: actions/checkout@v4
|
||||||
# images: pakin/tb-mng-server-app
|
- run: git fetch --unshallow --quiet --tags --force
|
||||||
# tags: |
|
- name: Set up QEMU
|
||||||
# type=semver,pattern={{version}}
|
uses: docker/setup-qemu-action@v3
|
||||||
# type=semver,pattern=latest
|
- uses: docker/setup-buildx-action@v3
|
||||||
# type=semver,pattern={{major}}
|
- uses: docker/metadata-action@v5
|
||||||
# type=semver,pattern={{major}}.{{minor}}
|
id: meta
|
||||||
# type=semver,pattern={{major}}.{{minor}}.{{patch}}
|
with:
|
||||||
# - uses: docker/login-action@v3
|
images: pakin/tb-mng-server-app
|
||||||
# with:
|
tags: |
|
||||||
# registry: pakin-inspiron-15-3530.tail360bd.ts.net
|
type=semver,pattern={{version}}
|
||||||
# username: ${{ secrets.DOCKER_USERNAME }}
|
type=semver,pattern=latest
|
||||||
# password: ${{ secrets.DOCKER_PASSWORD }}
|
type=semver,pattern={{major}}
|
||||||
# # - name: Build and push
|
type=semver,pattern={{major}}.{{minor}}
|
||||||
# # uses: docker/build-push-action@v6
|
type=semver,pattern={{major}}.{{minor}}.{{patch}}
|
||||||
# # env:
|
- uses: docker/login-action@v3
|
||||||
# # ACTIONS_RUNTIME_TOKEN: ${{ secrets.ENV_GITEA_TOKEN }}
|
with:
|
||||||
# # GITHUB_TOKEN: ''
|
registry: pakin-inspiron-15-3530.tail360bd.ts.net
|
||||||
# # with:
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
# # context: ./server
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
# # push: true
|
- name: Build and push
|
||||||
# # tags: ${{ steps.meta.outputs.tags }}
|
uses: docker/build-push-action@v6
|
||||||
# # labels: ${{ steps.meta.outputs.labels }}
|
with:
|
||||||
# - name: Build and push
|
context: ./server
|
||||||
# run: |
|
push: true
|
||||||
# cd server
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
# 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 }} .
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
# docker push pakin/tb-mng-server-app:latest
|
|
||||||
# docker push pakin/tb-mng-server-app:{{ inputs.version }}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue