-
Notifications
You must be signed in to change notification settings - Fork 28
41 lines (34 loc) · 903 Bytes
/
docker.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: Docker Image CI
on:
push:
branches: [ trunk ]
pull_request:
branches: [ trunk ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install packages
run: pip install -r requirements.txt
- name: Setup dist
run: python setup.py sdist
- uses: actions/upload-artifact@v1
with:
name: frida-gadget
path: dist
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.CR_PAT }}
- name: Build and push
uses: docker/build-push-action@v2
id: docker_build
with:
context: .
file: Dockerfile
push: true
tags: |
ghcr.io/${{ github.repository_owner }}/frida-gadget:latest