diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 8f0475b..c0d4e03 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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 diff --git a/Dockerfile b/Dockerfile index e5a1a95..4fa74dd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] diff --git a/Makefile b/Makefile index be6e63c..f4ddd40 100644 --- a/Makefile +++ b/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 diff --git a/action.yaml b/action.yaml index ecab0f3..3a4d5ac 100644 --- a/action.yaml +++ b/action.yaml @@ -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