@@ -13,8 +13,7 @@ jobs:
|
||||
|
||||
- name: Install tools (logged)
|
||||
run: |
|
||||
set -ex
|
||||
dnf install -y git buildah > /tmp/dnf.log 2>&1 || true
|
||||
dnf install -y --quiet git buildah > /tmp/dnf.log 2>&1 || true
|
||||
|
||||
- name: Show install log
|
||||
run: |
|
||||
@@ -30,22 +29,18 @@ jobs:
|
||||
|
||||
- name: Set registry host
|
||||
run: |
|
||||
set -ex
|
||||
echo "REGISTRY_HOST=$(echo ${{ gitea.server_url }} | sed 's|https\?://||')" >> "$GITEA_ENV" - name: Debug
|
||||
|
||||
- name: Checkout
|
||||
run: |
|
||||
set -ex
|
||||
git clone ${{ gitea.server_url }}/${{ gitea.repository }} .
|
||||
ls -la
|
||||
|
||||
- name: Build image
|
||||
run: |
|
||||
set -ex
|
||||
buildah bud -t ${{ env.REGISTRY_HOST }}/${{ gitea.repository }}:latest . 2>&1
|
||||
|
||||
- name: Push image
|
||||
run: |
|
||||
set -ex
|
||||
buildah login -u ${{ gitea.actor }} -p ${{ secrets.GITEA_TOKEN }} ${{ env.REGISTRY_HOST }} 2>&1
|
||||
buildah push ${{ env.REGISTRY_HOST }}/${{ gitea.repository }}:latest 2>&1
|
||||
|
||||
Reference in New Issue
Block a user