This commit is contained in:
@@ -13,18 +13,17 @@ jobs:
|
||||
|
||||
- name: Set registry host
|
||||
run: |
|
||||
echo "REGISTRY_HOST=$(echo ${{ gitea.server_url }} | sed 's|https\?://||')" >> "$GITEA_ENV" - name: Debug
|
||||
echo "REGISTRY_HOST=$(echo ${{ gitea.server_url }} | sed 's|https\?://||')" >> "$GITEA_ENV"
|
||||
|
||||
- name: Checkout
|
||||
run: |
|
||||
git clone ${{ gitea.server_url }}/${{ gitea.repository }} .
|
||||
ls -la
|
||||
|
||||
- name: Build image
|
||||
run: |
|
||||
buildah bud -t ${{ env.REGISTRY_HOST }}/${{ gitea.repository }}:latest . 2>&1
|
||||
buildah bud -t ${{ env.REGISTRY_HOST }}/${{ gitea.repository }}:latest .
|
||||
|
||||
- name: Push image
|
||||
run: |
|
||||
buildah login -u ${{ gitea.actor }} -p ${{ secrets.GITEA_TOKEN }} ${{ env.REGISTRY_HOST }} 2>&1
|
||||
buildah push ${{ env.REGISTRY_HOST }}/${{ gitea.repository }}:latest 2>&1
|
||||
buildah login -u ${{ gitea.actor }} -p ${{ secrets.GITEA_TOKEN }} ${{ env.REGISTRY_HOST }}
|
||||
buildah push ${{ env.REGISTRY_HOST }}/${{ gitea.repository }}:latest
|
||||
|
||||
Reference in New Issue
Block a user