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

This commit is contained in:
Sthope 2025-03-18 20:13:51 +01:00
parent 75262a0501
commit 9fc64fb2b8

View File

@ -12,13 +12,10 @@ on:
env:
# Use docker.io or ghcr.io
REGISTRY: docker.io
IMAGE_NAME: "${{ github.repository.split('/')[1] }}"
RELEASE: latest
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
@ -34,11 +31,12 @@ jobs:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PASS }}
- name: Extract repository name
id: repo_name
run: echo "IMAGE_NAME=${{ github.repository.split('/')[1] }}" >> $GITHUB_ENV
- name: Build Docker Image
run: docker build -t ${{ env.IMAGE_NAME }} .
- name: Push Docker Image
run: docker push ${{ env.REGISTRY }}/${{ secrets.DOCKER_USER }}/${{ env.IMAGE_NAME }}:${{ env.RELEASE }}