Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Emterry committed Dec 4, 2024
1 parent 4c85553 commit 4508189
Showing 1 changed file with 21 additions and 26 deletions.
47 changes: 21 additions & 26 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,45 +9,40 @@ permissions: {}

jobs:
test:
runs-on: [self-hosted, management-ecr]
runs-on: ubuntu-latest
env:
LOGS_BUCKET_NAME: moj-analytics-s3-logs
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Set up Docker Context for Buildx
id: buildx-context
run: docker context use builders || docker context create builders
# - name: Set up Docker Context for Buildx
# id: buildx-context
# run: docker context use builders || docker context create builders

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
with:
version: latest
endpoint: builders
# - name: Set up Docker Buildx
# id: buildx
# uses: docker/setup-buildx-action@v1
# with:
# version: latest
# endpoint: builders

- name: Install Docker Compose
id: docker-compose
shell: bash
env:
IMAGE_TAG: ${{ github.sha }}
run: |
sudo curl -L "https://github.com/docker/compose/releases/download/v2.21.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker-compose --version
# - name: Prep Tags
# id: prep
# run: |
# TAG=noop
# if [[ $GITHUB_REF == refs/tags/* ]]; then
# TAG=${GITHUB_REF#refs/tags/}
# elif [[ $GITHUB_REF == refs/pull/* ]]; then
# TAG="sha-${GITHUB_SHA::8}"
# elif [ "${{ github.event_name }}" = "push" ]; then
# TAG="sha-${GITHUB_SHA::8}"
# fi
# echo ::set-output name=tag::${TAG}
# echo ::set-output name=created::$(date -u +'%Y-%m-%dT%H:%M:%SZ')
- name: Build image
run: make build
env:
NETWORK: host
# IMAGE_TAG: ${{ steps.prep.outputs.tag }}

- name: Run Python tests (docker-compose)
run: make clean && make test
env:
NETWORK: default
# IMAGE_TAG: ${{ steps.prep.outputs.tag }}
NETWORK: default

0 comments on commit 4508189

Please sign in to comment.