Added gitea CI/CD configuration
This commit is contained in:
parent
4b3e2d40b9
commit
746e40b45b
@ -41,18 +41,18 @@ jobs:
|
|||||||
registry=${registry##http*://}
|
registry=${registry##http*://}
|
||||||
echo "registry=${registry}" >> "$GITHUB_OUTPUT"
|
echo "registry=${registry}" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
- name: Environment part 2
|
#- name: Environment part 2
|
||||||
run: |
|
# run: |
|
||||||
echo "++ Environment" && env|sort
|
# echo "++ Environment" && env|sort
|
||||||
echo "++ PWD" && pwd
|
# echo "++ PWD" && pwd
|
||||||
echo "++ ls" && ls -al
|
# echo "++ ls" && ls -al
|
||||||
echo "++ workspace" && ls ${{ gitea.workspace }}
|
# echo "++ workspace" && ls ${{ gitea.workspace }}
|
||||||
echo "++ host is ${{ gitea.repository }}"
|
# echo "++ host is ${{ gitea.repository }}"
|
||||||
echo "++ registry is ${{ steps.registry.outputs.registry }}"
|
# echo "++ registry is ${{ steps.registry.outputs.registry }}"
|
||||||
echo "++ container ${{ steps.registry.outputs.registry }}/${{ env.GITHUB_REPOSITORY }}:${{ env.VERSION }}"
|
# echo "++ container ${{ steps.registry.outputs.registry }}/${{ env.GITHUB_REPOSITORY }}:${{ env.VERSION }}"
|
||||||
echo "++ gitea server/domain ${{ gitea.server }}/${{ gitea.domain }}:latest"
|
# echo "++ gitea server/domain ${{ gitea.server }}/${{ gitea.domain }}:latest"
|
||||||
echo "++ github token ${{ gitea.TOKEN }}"
|
# echo "++ github token ${{ gitea.TOKEN }}"
|
||||||
echo "++ runtime token ${{ env.ACTIONS_RUNTIME_TOKEN }}"
|
# echo "++ runtime token ${{ env.ACTIONS_RUNTIME_TOKEN }}"
|
||||||
|
|
||||||
#- name: Build
|
#- name: Build
|
||||||
# run: |
|
# run: |
|
||||||
@ -76,12 +76,12 @@ jobs:
|
|||||||
username: deon
|
username: deon
|
||||||
password: ${{ secrets.PKG_WRITE_TOKEN }}
|
password: ${{ secrets.PKG_WRITE_TOKEN }}
|
||||||
|
|
||||||
- name: Build and push Docker image
|
#- name: Build and push Docker image
|
||||||
uses: docker/build-push-action@v5
|
# uses: docker/build-push-action@v5
|
||||||
env:
|
# env:
|
||||||
GIT_AUTH_TOKEN: ${{ secrets.PKG_WRITE_TOKEN }}
|
# GIT_AUTH_TOKEN: ${{ secrets.PKG_WRITE_TOKEN }}
|
||||||
with:
|
# with:
|
||||||
context: .
|
# context: .
|
||||||
file: ./Dockerfile
|
# file: ./Dockerfile
|
||||||
push: true
|
# push: true
|
||||||
tags: "${{ steps.registry.outputs.registry }}/${{ env.GITHUB_REPOSITORY }}:${{ env.VERSION }}"
|
# tags: "${{ steps.registry.outputs.registry }}/${{ env.GITHUB_REPOSITORY }}:${{ env.VERSION }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user