Skip to content

Commit 36e42fc

Browse files
committed
GH Actions setup bugfixx
1 parent d30ce6e commit 36e42fc

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/main.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,13 @@ jobs:
1313
run: cd $GITHUB_WORKSPACE/api/ && docker build . --file $GITHUB_WORKSPACE/api/Dockerfile --tag we45/threatplaybook-server
1414
- name: Test Secret
1515
run: echo $DOCKER_LOGIN_USER
16-
- name: Push to Hub
17-
run: docker push we45/threatplaybook-server
16+
- name: Build and Push
17+
uses: zemuldo/docker-build-push@master
18+
env:
19+
DOCKER_USERNAME: "we45"
20+
DOCKER_NAMESPACE: "we45"
21+
DOCKER_PASSWORD: ${{ secrets.DOCKER_LOGIN_PASS }}
22+
REGISTRY_URL: "docker.io"
23+
with:
24+
image_name: "threatplaybook-server"
25+
image_tag: "latest"

0 commit comments

Comments
 (0)