Skip to content

Commit

Permalink
Create build-nightly.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
InsertDisc authored Dec 20, 2023
1 parent 9da8853 commit 0f153a1
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/build-nightly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Build :nightly
on:
workflow_dispatch:
push:
branches:
- nightly
paths:
- 'main.py'
- 'Dockerfile'
- 'pattrmm.py'
- 'vars.py'
pull_request:
types: [closed]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3
with:
ref: nightly

- name: Login to GitHub Container Registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin

- name: Build Docker image
run: docker build -t ghcr.io/insertdisc/pattrmm:nightly .

- name: Push Docker image
run: docker push ghcr.io/insertdisc/pattrmm:nightly

0 comments on commit 0f153a1

Please sign in to comment.