@@ -8,22 +8,18 @@ jobs:
|
|||||||
runs-on: fedora-latest
|
runs-on: fedora-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Install tools
|
- name: Install tools
|
||||||
run: dnf install -y git nodejs npm curl wget jq tar xz findutils which gcc make
|
run: dnf install -y git buildah
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
run: git clone ${{ gitea.server_url }}/${{ gitea.repository }} .
|
run: git clone ${{ gitea.server_url }}/${{ gitea.repository }} .
|
||||||
|
|
||||||
- name: List directory contents
|
- name: Set registry host
|
||||||
run: ls -lah
|
run: echo "REGISTRY_HOST=$(echo ${{ gitea.server_url }} | sed 's|https\?://||')" >> "$GITHUB_ENV"
|
||||||
|
|
||||||
- name: Check buildah help
|
|
||||||
run: buildah --help
|
|
||||||
|
|
||||||
- name: Build image
|
- name: Build image
|
||||||
run: buildah bud -t ${{ gitea.server_url }}/${{ gitea.repository }}:latest .
|
run: 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 }} ${{ gitea.server_url }}
|
buildah login -u ${{ gitea.actor }} -p ${{ secrets.GITEA_TOKEN }} ${{ gitea.server_url }}
|
||||||
buildah push ${{ gitea.server_url }}/${{ gitea.repository }}:latest
|
buildah push ${{ env.REGISTRY_HOST }}/${{ gitea.repository }}:latest
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user