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