Skip to content

limit build to only my repo #7

limit build to only my repo

limit build to only my repo #7

Workflow file for this run

name: build
on:
push:
branches:
- main
paths-ignore:
- "**.md"
- ".idea"
- ".vscode"
- ".github/**"
- "!.github/workflows/build.yml"
- ".eslintrc.cjs"
jobs:
build:
if: github.repository_owner == 'kyleaupton'
runs-on: self-hosted
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push
uses: docker/build-push-action@v5
with:
platforms: linux/amd64,linux/arm64
context: .
push: true
target: final
tags: ${{ secrets.DOCKER_USERNAME }}/${{ github.event.repository.name }}:latest