-
Notifications
You must be signed in to change notification settings - Fork 7
41 lines (39 loc) · 1.02 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: 'Push to main'
on:
push:
branches: main
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Install testing dependencies
run: |
python -m pip install --upgrade pip
python -m pip install flake8
- name: Check with flake8
run: |
flake8 .
- name: Login to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build Docker image
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
platforms: linux/amd64
push: true
tags: ghcr.io/ds-homebrew/twlhelper:latest
- name: Reboot TWLHelper
run: |
curl -X POST ${{ secrets.JENKINS_BUILD }}