diff --git a/.github/workflows/manual.yaml b/.github/workflows/manual.yaml new file mode 100644 index 0000000..28c7f13 --- /dev/null +++ b/.github/workflows/manual.yaml @@ -0,0 +1,29 @@ +name: Manually Build + +on: + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v3 + - name: Setup Golang + uses: actions/setup-go@v4 + with: + go-version: '1.24' + - name: Build ldap utils + run: | + go build -o ldaputils + - name: Setup Docker + uses: docker-practice/actions-setup-docker@master + with: + docker_version: 20.10 + docker_channel: stable + - name: Login to DockerHub and push image + run: | + docker login -u "${{ secrets.DOCKERHUB_USERNAME }}" -p "${{ secrets.DOCKERHUB_SECRET }}" + docker build -t firstfloor/ldaputils:latest . + docker push firstfloor/ldaputils:latest + \ No newline at end of file