revert testing changes
This commit is contained in:
parent
c4771a8793
commit
3f693b4f1d
6 changed files with 6 additions and 30 deletions
24
.github/workflows/ci.yaml
vendored
24
.github/workflows/ci.yaml
vendored
|
|
@ -5,7 +5,6 @@ on:
|
|||
push:
|
||||
branches:
|
||||
- main
|
||||
- '*'
|
||||
paths-ignore:
|
||||
- '**/*.md'
|
||||
pull_request:
|
||||
|
|
@ -27,31 +26,12 @@ jobs:
|
|||
|
||||
- name: Refresh module hashsums
|
||||
run: make tidy
|
||||
|
||||
- name: Generate token
|
||||
id: generate_token
|
||||
uses: tibdex/github-app-token@v1
|
||||
with:
|
||||
app_id: ${{ secrets.APP_ID }}
|
||||
private_key: ${{ secrets.APP_PRIVATE_KEY }}
|
||||
|
||||
- name: Login to GitHub Container Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: snskArora
|
||||
password: ${{ secrets.grained_auth }}
|
||||
|
||||
- name: Build
|
||||
run: make build
|
||||
run: |
|
||||
make build
|
||||
env:
|
||||
VERSION: latest
|
||||
|
||||
# - name: Push
|
||||
# run: make push
|
||||
# env:
|
||||
# VERSION: latest
|
||||
|
||||
- name: Test
|
||||
run: make test
|
||||
- name: Lint
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ RUN go mod tidy
|
|||
RUN CGO_ENABLED=0 go build -o app .
|
||||
|
||||
FROM alpine:3.14
|
||||
LABEL org.opencontainers.image.source https://github.com/snskArora/manual-approval
|
||||
LABEL org.opencontainers.image.source https://github.com/trstringer/manual-approval
|
||||
RUN apk update && apk add ca-certificates
|
||||
COPY --from=builder /var/app/app /var/app/app
|
||||
CMD ["/var/app/app"]
|
||||
|
|
|
|||
3
Makefile
3
Makefile
|
|
@ -1,4 +1,4 @@
|
|||
IMAGE_REPO=ghcr.io/snskarora/manual-approval
|
||||
IMAGE_REPO=ghcr.io/trstringer/manual-approval
|
||||
TARGET_PLATFORM=linux/amd64
|
||||
|
||||
.PHONY: tidy
|
||||
|
|
@ -12,7 +12,6 @@ build:
|
|||
exit 1; \
|
||||
fi
|
||||
docker build --platform $(TARGET_PLATFORM) -t $(IMAGE_REPO):$$VERSION .
|
||||
docker push $(IMAGE_REPO):$(VERSION)
|
||||
|
||||
.PHONY: push
|
||||
push:
|
||||
|
|
|
|||
|
|
@ -50,4 +50,4 @@ outputs:
|
|||
description: The status of the approval ("approved" or "denied")
|
||||
runs:
|
||||
using: docker
|
||||
image: docker://ghcr.io/snskarora/manual-approval:latest
|
||||
image: docker://ghcr.io/trstringer/manual-approval:latest
|
||||
|
|
|
|||
|
|
@ -85,9 +85,6 @@ func (a *approvalEnvironment) createApprovalIssue(ctx context.Context) error {
|
|||
formatAcceptedWords(deniedWords),
|
||||
)
|
||||
|
||||
// if a.issueBody != "" {
|
||||
// issueBody = fmt.Sprintf(">%s\n>\n%s", a.issueBody, issueBody)
|
||||
// }
|
||||
issueBody = fmt.Sprintf(">[!NOTE]\n%s", issueBody)
|
||||
|
||||
var err error
|
||||
|
|
|
|||
2
go.mod
2
go.mod
|
|
@ -1,4 +1,4 @@
|
|||
module github.com/snskArora/manual-approval
|
||||
module github.com/trstringer/manual-approval
|
||||
|
||||
go 1.17
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue