Skip to content

Commit

Permalink
REnaming delete-from-enterprise sync-enterprise
Browse files Browse the repository at this point in the history
  • Loading branch information
dkrizic committed May 23, 2024
1 parent e1c9b55 commit 5c492dc
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.github
main
delete-from-enterprise
sync-enterprise
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
uses: actions/checkout@v4

- name: Build the Docker image
run: docker build . --file Dockerfile --tag ghcr.io/prodyna/delete-from-enterprise:latest
run: docker build . --file Dockerfile --tag ghcr.io/prodyna/sync-enterprise:latest

# if tag, get the tag as variable
- name: Get tag if available
Expand All @@ -33,12 +33,12 @@ jobs:

# Push latest to GitHub Container Registry
- name: Push the latest Docker image to the GitHub Container Registry
run: docker push ghcr.io/prodyna/delete-from-enterprise:latest
run: docker push ghcr.io/prodyna/sync-enterprise:latest

# if tagged, push the image to the GitHub Container Registry
- name: Tag with git tag and push to GitHub Container Registry
# only if it is a tag
if: startsWith(github.ref, 'refs/tags/v')
run: |
docker tag ghcr.io/prodyna/delete-from-enterprise:latest ghcr.io/prodyna/delete-from-enterprise:${{ env.tag }}
docker push ghcr.io/prodyna/delete-from-enterprise:${{ env.tag }}
docker tag ghcr.io/prodyna/sync-enterprise:latest ghcr.io/prodyna/sync-enterprise:${{ env.tag }}
docker push ghcr.io/prodyna/sync-enterprise:${{ env.tag }}
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.idea/
main
.env
delete-from-enterprise
sync-enterprise
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ FROM golang:1.22.3-alpine3.19 as build
WORKDIR /app
COPY . .
RUN go mod download
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o delete-from-enterprise .
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o sync-enterprise .

FROM alpine:3.19.1
COPY --from=build /app/delete-from-enterprise /app/
COPY --from=build /app/sync-enterprise /app/
# COPY /template /template
ENTRYPOINT ["/app/delete-from-enterprise"]
ENTRYPOINT ["/app/sync-enterprise"]
2 changes: 1 addition & 1 deletion action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ inputs:
required: true
runs:
using: 'docker'
image: 'docker://ghcr.io/prodyna/delete-from-enterprise:v1.0.0'
image: 'docker://ghcr.io/prodyna/sync-enterprise:v1.0.0'
env:
GITHUB_TOKEN: ${{ inputs.github-token }}
GITHUB_ENTERPRISE: ${{ inputs.github-enterprise }}
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/prodyna/delete-from-enterprise
module github.com/prodyna/sync-enterprise

go 1.22.3

Expand Down
10 changes: 5 additions & 5 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ package main

import (
"context"
"github.com/prodyna/delete-from-enterprise/azure"
"github.com/prodyna/delete-from-enterprise/config"
"github.com/prodyna/delete-from-enterprise/github"
"github.com/prodyna/delete-from-enterprise/meta"
"github.com/prodyna/delete-from-enterprise/sync"
"github.com/prodyna/sync-enterprise/azure"
"github.com/prodyna/sync-enterprise/config"
"github.com/prodyna/sync-enterprise/github"
"github.com/prodyna/sync-enterprise/meta"
"github.com/prodyna/sync-enterprise/sync"
"log/slog"
"os"
)
Expand Down
4 changes: 2 additions & 2 deletions sync/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package sync

import (
"context"
"github.com/prodyna/delete-from-enterprise/azure"
"github.com/prodyna/delete-from-enterprise/github"
"github.com/prodyna/sync-enterprise/azure"
"github.com/prodyna/sync-enterprise/github"
"log/slog"
)

Expand Down

0 comments on commit 5c492dc

Please sign in to comment.