Update .gitea/workflows/build.yml
Some checks failed
Build and Publish TVJ EPG Image / build (push) Failing after 0s
Some checks failed
Build and Publish TVJ EPG Image / build (push) Failing after 0s
This commit is contained in:
@@ -10,7 +10,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout repository
|
||||||
uses: gitea/checkout@v4
|
uses: gitea/checkout@v4
|
||||||
|
|
||||||
- name: Install Podman
|
- name: Install Podman
|
||||||
@@ -24,12 +24,9 @@ jobs:
|
|||||||
VERSION="$(cat VERSION | tr -d ' \n')"
|
VERSION="$(cat VERSION | tr -d ' \n')"
|
||||||
echo "version=$VERSION" >> $GITHUB_OUTPUT
|
echo "version=$VERSION" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
# ----------------------------
|
|
||||||
# Login to your registry
|
|
||||||
# ----------------------------
|
|
||||||
- name: Registry login
|
- name: Registry login
|
||||||
env:
|
env:
|
||||||
REGISTRY: ${{ vars.REGISTRY }} # e.g. registry.example.com OR ghcr.io
|
REGISTRY: ${{ vars.REGISTRY }}
|
||||||
REGISTRY_USER: ${{ secrets.REGISTRY_USER }}
|
REGISTRY_USER: ${{ secrets.REGISTRY_USER }}
|
||||||
REGISTRY_TOKEN: ${{ secrets.REGISTRY_TOKEN }}
|
REGISTRY_TOKEN: ${{ secrets.REGISTRY_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
@@ -37,13 +34,10 @@ jobs:
|
|||||||
-u "$REGISTRY_USER" \
|
-u "$REGISTRY_USER" \
|
||||||
--password-stdin
|
--password-stdin
|
||||||
|
|
||||||
# ----------------------------
|
|
||||||
# Build & tag
|
|
||||||
# ----------------------------
|
|
||||||
- name: Build image (multi-tag)
|
- name: Build image (multi-tag)
|
||||||
env:
|
env:
|
||||||
REGISTRY: ${{ vars.REGISTRY }} # e.g. registry.example.com OR ghcr.io
|
REGISTRY: ${{ vars.REGISTRY }}
|
||||||
IMAGE: ${{ vars.IMAGE }} # e.g. lyncolnmd/tvj-epg (no registry prefix)
|
IMAGE: ${{ vars.IMAGE }}
|
||||||
VERSION: ${{ steps.version.outputs.version }}
|
VERSION: ${{ steps.version.outputs.version }}
|
||||||
run: |
|
run: |
|
||||||
SHORT_SHA="${GITHUB_SHA::7}"
|
SHORT_SHA="${GITHUB_SHA::7}"
|
||||||
@@ -56,9 +50,6 @@ jobs:
|
|||||||
-t "$FULL_IMAGE:sha-$SHORT_SHA" \
|
-t "$FULL_IMAGE:sha-$SHORT_SHA" \
|
||||||
.
|
.
|
||||||
|
|
||||||
# ----------------------------
|
|
||||||
# Push
|
|
||||||
# ----------------------------
|
|
||||||
- name: Push all tags
|
- name: Push all tags
|
||||||
env:
|
env:
|
||||||
REGISTRY: ${{ vars.REGISTRY }}
|
REGISTRY: ${{ vars.REGISTRY }}
|
||||||
|
|||||||
Reference in New Issue
Block a user