Skip to content

Commit

Permalink
updated build spec, added basic github action to test
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesgreen-moj committed Jun 10, 2024
1 parent 979ce73 commit a63e99a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/dhcp-testing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
on:
push

jobs:
AssumeRoleAndCallIdentity:
runs-on: ubuntu-latest
steps:
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v2
with:
aws-region: eu-west-2
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
role-session-name: GitHubWorkflow

- name: Sts GetCallerIdentity
run: |
aws sts get-caller-identity
4 changes: 0 additions & 4 deletions buildspec.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ env:
DOCKER_PASSWORD: "/moj-network-access-control/docker/password"

phases:
install:
commands:
- nohup /usr/local/bin/dockerd --host=unix:///var/run/docker.sock --host=tcp://127.0.0.1:2375 --storage-driver=overlay2&
- timeout 15 sh -c "until docker info; do echo .; sleep 1; done"

build:
commands:
Expand Down

0 comments on commit a63e99a

Please sign in to comment.