@@ -13,8 +13,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Install tools (logged)
|
- name: Install tools (logged)
|
||||||
run: |
|
run: |
|
||||||
set -ex
|
dnf install -y --quiet git buildah > /tmp/dnf.log 2>&1 || true
|
||||||
dnf install -y git buildah > /tmp/dnf.log 2>&1 || true
|
|
||||||
|
|
||||||
- name: Show install log
|
- name: Show install log
|
||||||
run: |
|
run: |
|
||||||
@@ -30,22 +29,18 @@ jobs:
|
|||||||
|
|
||||||
- name: Set registry host
|
- name: Set registry host
|
||||||
run: |
|
run: |
|
||||||
set -ex
|
|
||||||
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: Debug
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
run: |
|
run: |
|
||||||
set -ex
|
|
||||||
git clone ${{ gitea.server_url }}/${{ gitea.repository }} .
|
git clone ${{ gitea.server_url }}/${{ gitea.repository }} .
|
||||||
ls -la
|
ls -la
|
||||||
|
|
||||||
- name: Build image
|
- name: Build image
|
||||||
run: |
|
run: |
|
||||||
set -ex
|
|
||||||
buildah bud -t ${{ env.REGISTRY_HOST }}/${{ gitea.repository }}:latest . 2>&1
|
buildah bud -t ${{ env.REGISTRY_HOST }}/${{ gitea.repository }}:latest . 2>&1
|
||||||
|
|
||||||
- name: Push image
|
- name: Push image
|
||||||
run: |
|
run: |
|
||||||
set -ex
|
|
||||||
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 }} 2>&1
|
||||||
buildah push ${{ env.REGISTRY_HOST }}/${{ gitea.repository }}:latest 2>&1
|
buildah push ${{ env.REGISTRY_HOST }}/${{ gitea.repository }}:latest 2>&1
|
||||||
|
|||||||
Reference in New Issue
Block a user