Update build
This commit is contained in:
@@ -8,9 +8,12 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
release-image:
|
release-image:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
packages: write
|
||||||
env:
|
env:
|
||||||
DOCKER_LATEST: stable
|
DOCKER_LATEST: stable
|
||||||
CONTAINER_NAME: drb-client-discord-bot
|
CONTAINER_NAME: op25-client
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -20,24 +23,24 @@ jobs:
|
|||||||
|
|
||||||
- name: Set up Docker BuildX
|
- name: Set up Docker BuildX
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
with: # replace it with your local IP
|
with:
|
||||||
config-inline: |
|
config-inline: |
|
||||||
[registry."git.vpn.cusano.net"]
|
[registry."git.vpn.cusano.net"]
|
||||||
http = false
|
http = false
|
||||||
insecure = false
|
insecure = false
|
||||||
|
|
||||||
- name: Login to DockerHub
|
- name: Login to Gitea Container Registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: git.vpn.cusano.net # replace it with your local IP
|
registry: git.vpn.cusano.net
|
||||||
username: ${{ secrets.GIT_REPO_USERNAME }}
|
username: ${{ github.actor }} # Uses the user or bot that triggered the workflow
|
||||||
password: ${{ secrets.GIT_REPO_PASSWORD }}
|
password: ${{ secrets.GITHUB_TOKEN }} # The built-in, temporary token
|
||||||
|
|
||||||
- name: Get Meta
|
- name: Get Meta
|
||||||
id: meta
|
id: meta
|
||||||
run: |
|
run: |
|
||||||
echo REPO_NAME=$(echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}') >> $GITHUB_OUTPUT
|
echo REPO_NAME=$(echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}') >> $GITHUB_OUTPUT
|
||||||
echo REPO_VERSION=$(git describe --tags --always | sed 's/^v//') >> $GITHUB_OUTPUT
|
echo REPO_VERSION=$(git describe --tags --always | sed 's/^v//') >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Validate build configuration
|
- name: Validate build configuration
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
@@ -52,6 +55,6 @@ jobs:
|
|||||||
platforms: |
|
platforms: |
|
||||||
linux/arm64
|
linux/arm64
|
||||||
push: true
|
push: true
|
||||||
tags: | # replace it with your local IP and tags
|
tags: |
|
||||||
git.vpn.cusano.net/${{ vars.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}/${{ env.CONTAINER_NAME }}:${{ steps.meta.outputs.REPO_VERSION }}
|
git.vpn.cusano.net/${{ vars.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}/${{ env.CONTAINER_NAME }}:${{ steps.meta.outputs.REPO_VERSION }}
|
||||||
git.vpn.cusano.net/${{ vars.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}/${{ env.CONTAINER_NAME }}:${{ env.DOCKER_LATEST }}
|
git.vpn.cusano.net/${{ vars.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}/${{ env.CONTAINER_NAME }}:${{ env.DOCKER_LATEST }}
|
||||||
|
|||||||
Reference in New Issue
Block a user