undo test change

This commit is contained in:
Devedse 2024-08-14 15:58:58 +02:00
parent 4a0d3a0ef7
commit c08ee662d7

View File

@ -6,31 +6,29 @@ name: Docker
# documentation. # documentation.
on: on:
workflow_dispatch: schedule:
- cron: '20 0 * * *'
# schedule: push:
# - cron: '20 0 * * *' branches:
# push: - main
# branches: - feature/**
# - main # Publish semver tags as releases.
# - feature/** tags: [ 'v*.*.*' ]
# # Publish semver tags as releases. paths-ignore:
# tags: [ 'v*.*.*' ] - 'docs/**'
# paths-ignore: - 'mkdocs.yml'
# - 'docs/**' pull_request:
# - 'mkdocs.yml' branches: [ "main" ]
# pull_request: paths-ignore:
# branches: [ "main" ] - 'docs/**'
# paths-ignore: - 'mkdocs.yml'
# - 'docs/**' merge_group:
# - 'mkdocs.yml'
# merge_group:
env: env:
# Use docker.io for Docker Hub if empty # Use docker.io for Docker Hub if empty
REGISTRY: docker.io REGISTRY: ghcr.io
# github.repository as <account>/<repo> # github.repository as <account>/<repo>
IMAGE_NAME: devedse/homepage IMAGE_NAME: ${{ github.repository }}
jobs: jobs:
@ -52,8 +50,8 @@ jobs:
build: build:
name: Docker Build & Push name: Docker Build & Push
if: github.repository == 'devedse/homepage' if: github.repository == 'gethomepage/homepage'
runs-on: ubuntu-latest runs-on: self-hosted
needs: needs:
- pre-commit - pre-commit
permissions: permissions:
@ -96,18 +94,13 @@ jobs:
# Login against a Docker registry except on PR # Login against a Docker registry except on PR
# https://github.com/docker/login-action # https://github.com/docker/login-action
# - name: Log into registry ${{ env.REGISTRY }} - name: Log into registry ${{ env.REGISTRY }}
# if: github.event_name != 'pull_request' if: github.event_name != 'pull_request'
# uses: docker/login-action@v3 uses: docker/login-action@v3
# with:
# registry: ${{ env.REGISTRY }}
# username: ${{ github.actor }}
# password: ${{ secrets.GITHUB_TOKEN }}
- name: Login to Docker Hub
uses: docker/login-action@v2
with: with:
username: devedse registry: ${{ env.REGISTRY }}
password: ${{ secrets.DOCKERHUBTOKEN }} username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
# Extract metadata (tags, labels) for Docker # Extract metadata (tags, labels) for Docker
# https://github.com/docker/metadata-action # https://github.com/docker/metadata-action