[skip ci] Reverting test changes
This commit is contained in:
parent
df3bcd85ee
commit
9fcdc72f09
4 changed files with 3 additions and 27 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:
|
||||
|
|
@ -18,40 +17,17 @@ jobs:
|
|||
ci:
|
||||
name: CI
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- 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
|
||||
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"]
|
||||
|
|
|
|||
2
Makefile
2
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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue