first commit
Some checks failed
Docker / build (push) Failing after 20s

This commit is contained in:
Sthope 2025-03-18 20:34:02 +01:00
parent da0ad79f06
commit 70421e9ec3

View File

@ -13,6 +13,8 @@ env:
# Use docker.io or ghcr.io # Use docker.io or ghcr.io
REGISTRY: docker.io REGISTRY: docker.io
RELEASE: latest RELEASE: latest
USER: sthopeless
IMAGE: ${{ github.repository.split('/')[1] }}
jobs: jobs:
build: build:
@ -31,12 +33,18 @@ jobs:
password: ${{ secrets.DOCKER_PASS }} password: ${{ secrets.DOCKER_PASS }}
- name: Extract repository name - name: Extract repository name
if: ${{ env.REGISTRY == 'docker.io' }}
id: repo_name id: repo_name
run: echo "IMAGE_NAME=${{ github.repository.split('/')[1] }}" >> $GITHUB_ENV && echo $IMAGE_NAME run: echo "IMAGE_NAME=${{ env.USER }}/${{ env.IMAGE }}:${{ env.RELEASE }}" >> $GITHUB_ENV
- name: Extract repository name
if: ${{ env.REGISTRY == 'ghcr.io' }}
id: repo_name
run: echo "IMAGE_NAME=${{ env.REGISTRY }}/${{ env.USER }}/${{ env.IMAGE }}:${{ env.RELEASE }}" >> $GITHUB_ENV
- name: Build and push - name: Build and push
uses: docker/build-push-action@v6 uses: docker/build-push-action@v6
with: with:
file: Dockerfile file: Dockerfile
push: true push: true
tags: ${{ env.REGISTRY }}/${{ secrets.DOCKER_USER }}/${{ env.IMAGE_NAME }}:${{ env.RELEASE }} tags: ${{ env.IMAGE_NAME }}