Skip to content

Commit

Permalink
initial migration
Browse files Browse the repository at this point in the history
  • Loading branch information
jkennedyvz committed Dec 27, 2023
1 parent 359215a commit 68947b9
Show file tree
Hide file tree
Showing 8 changed files with 162 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @jkennedyvz @jrozner @JoelAtDeluxe
23 changes: 23 additions & 0 deletions .github/ISSUE_TEMPLATE/bug.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
name: Bug
about: "Report a confirmed bug."
labels: "bug, triage"

---
<!--
Please fill in the following details to help us reproduce the bug:
-->
**Description of the problem including expected versus actual behavior**:

**Steps to reproduce**:

Please include a *minimal* but *complete* recreation of the problem,
including (e.g.) index creation, mappings, settings, query etc. The easier
you make for us to reproduce it, the more likely that somebody will take the
time to look at it.

1.
2.
3.

**Provide logs (if relevant)**:
21 changes: 21 additions & 0 deletions .github/ISSUE_TEMPLATE/feature-request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
name: Feature Request
about: Request a new feature we haven't thought of
labels: "enhancement, triage"

---
<!--
Please first search existing issues for the feature you are requesting;
it may already exist, even as a closed issue.
-->

<!--
Describe the feature.
Please give us as much context as possible about the feature. For example,
you could include a story about a time when you wanted to use the feature,
and also tell us what you had to do instead. The last part is helpful
because it gives us an idea of how much harder your life is without the
feature.
-->
8 changes: 8 additions & 0 deletions .github/ISSUE_TEMPLATE/question.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
name: Question
about: A general question, or unconfirmed bug
labels: "question"

---

Please ask your question below in plain language as described in our [Code of Conduct](https://github.com/ashirt-ops/ashirt-workers/blob/master/Code-of-Conduct.md)
23 changes: 23 additions & 0 deletions .github/ISSUE_TEMPLATE/test-failure.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
name: Test Failure
about: A test failure in CI
labels: "test-failure"

---

<!--
Please fill out the following information, and ensure you have attempted
to reproduce locally
-->

**Build scan**:

**Repro line**:

**Reproduces locally?**:

**Applicable branches**:

**Failure history**:

**Failure excerpt**:
10 changes: 10 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!--
Thank you for your interest in and contributing to ASHIRT! There
are a few simple things to check before submitting your pull request
that can help with the review process. We only seek to accept code that you are authorized to contribute to the project. This pull request template is included on our projects so that your contributions are made with the following confirmation: I confirm that this contribution is made under the terms of the license found in the root directory of this repository's source tree and that I have the authority necessary to make this contribution on behalf of its copyright owner.
-->

- Please review our [contributing guidelines](https://github.com/ashirt-ops/ashirt-server/blob/master/Contributing.md)
- Please review our [Code of Conduct](https://github.com/ashirt-ops/ashirt-server/blob/master/Code-of-Conduct.md)

I confirm that this contribution is made under the terms of the license found in the root directory of this repository's source tree and that I have the authority necessary to make this contribution on behalf of its copyright owner.
16 changes: 16 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"

- package-ecosystem: "npm"
directory: "/frontend"
schedule:
interval: "monthly"

- package-ecosystem: "gomod"
directory: "/"
schedule:
interval: "monthly"
60 changes: 60 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: ci

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build_push:
name: Build and Push
strategy:
matrix:
service: [demo-tesseract-lambda-python]
fail-fast: false
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Docker meta
id: docker_meta
uses: docker/[email protected]
with:
images: ashirt/${{ matrix.service }} # list of Docker images to use as base name for tags
tags: |
type=sha
type=ref,event=branch
type=ref,event=pr
flavor: |
latest=false
- name: Login to Docker Hub
uses: docker/[email protected]
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Set up Docker Buildx
id: buildx
uses: docker/[email protected]

- name: Build and Push PR
if: github.ref != 'refs/heads/main'
uses: docker/[email protected]
with:
context: workers/${{ matrix.service }}
file: Dockerfile
tags: ${{ steps.docker_meta.outputs.tags }}
labels: ${{ steps.docker_meta.outputs.labels }}
platforms: linux/amd64
push: true # Push with pr-### and sha-xxxxxxx tags

- name: Build and Push Latest
if: github.ref == 'refs/heads/main'
uses: docker/[email protected]
with:
context: workers/${{ matrix.service }}
file: Dockerfile
tags: ${{ steps.docker_meta.outputs.tags }}, ashirt/${{ matrix.service }}:latest #Add latest tag for main
labels: ${{ steps.docker_meta.outputs.labels }}
platforms: linux/amd64
push: true

0 comments on commit 68947b9

Please sign in to comment.