This commit is contained in:
@@ -24,10 +24,10 @@ jobs:
|
||||
run: |
|
||||
echo GT ${{ secrets.GITHUB_TOKEN }}
|
||||
echo GH ${{ secrets.GITHUB_TOKEN }}
|
||||
echo actore ${{ gitea.actor }}
|
||||
test -z "${{ secrets.GITEA_TOKEN}}" && echo "GITEA_TOKEN is empty"
|
||||
test -z "${{ secrets.GITHUB_TOKEN}}" && echo "GITHUB_TOKEN is empty"
|
||||
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
echo actore ${{ gitea.actor }}
|
||||
|
||||
- name: Install Buildah
|
||||
run: |-
|
||||
@@ -39,6 +39,12 @@ jobs:
|
||||
else
|
||||
echo "Buildah already installed"
|
||||
fi
|
||||
- name: Login to repository
|
||||
run: |
|
||||
buildah login $REGISTRY -u ${{ gitea.actor }} -p ${{ secrets.GITEA_TOKEN }}
|
||||
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Build and tag
|
||||
run: |-
|
||||
@@ -48,6 +54,5 @@ jobs:
|
||||
|
||||
- name: Push image
|
||||
run: |-
|
||||
buildah login $REGISTRY -u ${{ gitea.actor }} -p ${{ secrets.GITHUB_TOKEN }}
|
||||
buildah push $REGISTRY/${IMAGE_NAME,,}:$VERSION
|
||||
buildah push $REGISTRY/${IMAGE_NAME,,}:latest
|
||||
|
Reference in New Issue
Block a user