[skip ci] Reverting test changes

This commit is contained in:
SnskArora 2025-06-02 21:13:19 +05:30
parent df3bcd85ee
commit 9fcdc72f09
No known key found for this signature in database
GPG key ID: 6EC7FEA48093AB59
4 changed files with 3 additions and 27 deletions

View file

@ -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

View file

@ -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"]

View file

@ -1,4 +1,4 @@
IMAGE_REPO=ghcr.io/snskarora/manual-approval
IMAGE_REPO=ghcr.io/trstringer/manual-approval
TARGET_PLATFORM?=linux/amd64
.PHONY: tidy

View file

@ -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