Skip to content

Commit

Permalink
feat: push to docker hub
Browse files Browse the repository at this point in the history
  • Loading branch information
CumpsD committed Dec 28, 2020
1 parent 8fe98ab commit de72f52
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,13 @@ jobs:
python -m pip install --upgrade pip
pip install requests markdown argparse
- name: Login to Docker Hub
uses: docker/[email protected]
with:
registry: ${{ secrets.DOCKERHUB_REGISTRY }}
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Run Semantic Release
shell: bash
run: npx semantic-release
Expand All @@ -93,6 +100,7 @@ jobs:
GIT_EMAIL: [email protected]
GIT_AUTHOR_EMAIL: [email protected]
GIT_COMMITTER_EMAIL: [email protected]
BUILD_DOCKER_REGISTRY: ${{ secrets.DOCKERHUB_REGISTRY }}

- name: Set Release Version
run: |
Expand Down
14 changes: 7 additions & 7 deletions build.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ let product = "Functional Living"
let copyright = "Copyright (c) Cumps Consulting"
let company = "Cumps Consulting"

let dockerRepository = "functional-living"
let dockerRepository = "cumpsd"
let assemblyVersionNumber = (sprintf "2.%s")
let nugetVersionNumber = (sprintf "2.%s")

Expand Down Expand Up @@ -83,14 +83,14 @@ Target.create "Pack_Solution" (fun _ ->
] |> List.iter pack
)

Target.create "Containerize_Api" (fun _ -> containerize "FunctionalLiving.Api" "api")
Target.create "PushContainer_Api" (fun _ -> push "api")
Target.create "Containerize_Api" (fun _ -> containerize "FunctionalLiving.Api" "functional-living-api")
Target.create "PushContainer_Api" (fun _ -> push "functional-living-api")

Target.create "Containerize_KnxListener" (fun _ -> containerize "FunctionalLiving.Knx.Listener" "knx-listener")
Target.create "PushContainer_KnxListener" (fun _ -> push "knx-listener")
Target.create "Containerize_KnxListener" (fun _ -> containerize "FunctionalLiving.Knx.Listener" "functional-living-knx-listener")
Target.create "PushContainer_KnxListener" (fun _ -> push "functional-living-knx-listener")

Target.create "Containerize_KnxSender" (fun _ -> containerize "FunctionalLiving.Knx.Sender" "knx-sender")
Target.create "PushContainer_KnxSender" (fun _ -> push "knx-sender")
Target.create "Containerize_KnxSender" (fun _ -> containerize "FunctionalLiving.Knx.Sender" "functional-living-knx-sender")
Target.create "PushContainer_KnxSender" (fun _ -> push "functional-living-knx-sender")

Target.create "Build" ignore
Target.create "Test" ignore
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
},
{
"path": "@semantic-release/exec",
"cmd": "CI_BUILD_NUMBER=${nextRelease.version} ./build.sh Containerize"
"cmd": "CI_BUILD_NUMBER=${nextRelease.version} ./build.sh Push"
},
{
"path": "@semantic-release/git",
Expand Down

0 comments on commit de72f52

Please sign in to comment.