This commit is contained in:
@@ -13,18 +13,17 @@ jobs:
|
|||||||
|
|
||||||
- name: Set registry host
|
- name: Set registry host
|
||||||
run: |
|
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
|
- name: Checkout
|
||||||
run: |
|
run: |
|
||||||
git clone ${{ gitea.server_url }}/${{ gitea.repository }} .
|
git clone ${{ gitea.server_url }}/${{ gitea.repository }} .
|
||||||
ls -la
|
|
||||||
|
|
||||||
- name: Build image
|
- name: Build image
|
||||||
run: |
|
run: |
|
||||||
buildah bud -t ${{ env.REGISTRY_HOST }}/${{ gitea.repository }}:latest . 2>&1
|
buildah bud -t ${{ env.REGISTRY_HOST }}/${{ gitea.repository }}:latest .
|
||||||
|
|
||||||
- name: Push image
|
- name: Push image
|
||||||
run: |
|
run: |
|
||||||
buildah login -u ${{ gitea.actor }} -p ${{ secrets.GITEA_TOKEN }} ${{ env.REGISTRY_HOST }} 2>&1
|
buildah login -u ${{ gitea.actor }} -p ${{ secrets.GITEA_TOKEN }} ${{ env.REGISTRY_HOST }}
|
||||||
buildah push ${{ env.REGISTRY_HOST }}/${{ gitea.repository }}:latest 2>&1
|
buildah push ${{ env.REGISTRY_HOST }}/${{ gitea.repository }}:latest
|
||||||
|
|||||||
Reference in New Issue
Block a user