Skip to content

Commit

Permalink
now starting the docker with ssh
Browse files Browse the repository at this point in the history
  • Loading branch information
DinisCruz committed May 30, 2024
1 parent e18fb0c commit dada55c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
name: Build and Push Docker Image

on:
push:

#on:
# workflow_dispatch:
# workflow_run:
# workflows: ["Increment Tag - Main branch"]
# types:
# - completed
# push:

on:
workflow_dispatch:
workflow_run:
workflows: ["Increment Tag - Main branch"]
types:
- completed

jobs:
build-and-push:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/run-tests-with-ssh.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Run tests (aimed at SSH server)

on:
#push
pull_request:
push
#pull_request:

jobs:
test:
Expand All @@ -24,7 +24,7 @@ jobs:
- name: Start Docker container
run: |
docker run -d -p 22222:22 --name test_container -e AUTHORIZED_KEYS="${{ steps.ssh-key.outputs.public_key }}" --platform linux/arm64 diniscruz/python_with_ssh
docker run -d -p 22222:22 --name test_container -e AUTHORIZED_KEYS="${{ steps.ssh-key.outputs.public_key }}" diniscruz/python_with_ssh
- name: Wait for Docker container to be ready
run: |
Expand Down

0 comments on commit dada55c

Please sign in to comment.