Skip to content

Commit

Permalink
Push and pull to ghcr.io to hasten builds
Browse files Browse the repository at this point in the history
  • Loading branch information
lloeki committed Apr 4, 2023
1 parent 80ca638 commit 9e2577a
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/system-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ jobs:
uses: actions/checkout@v3
with:
repository: 'DataDog/system-tests'
# - name: Pull image
# run: |
# docker pull ghcr.io/datadog/dd-trace-rb/system-tests/${{ matrix.image }}:latest
# docker tag ghcr.io/datadog/dd-trace-rb/system-tests/${{ matrix.image }}:latest system_tests/${{ matrix.image }}:latest
- name: Build image
run: ./build.sh --images ${{ matrix.image }}
- name: Export image
Expand All @@ -39,6 +43,14 @@ jobs:
name: docker-image-${{ matrix.image }}-${{ github.run_id }}-${{ github.sha }}
path: images/*
retention-days: 1
- name: Log in to the Container registry
run: |
echo ${{ secrets.GITHUB_TOKEN }} | docker login ${{ env.REGISTRY }} -u ${{ github.actor }} --password-stdin
- name: Push image
# if: ${{ github.ref == 'refs/heads/master' }}
run: |
docker tag system_tests/${{ matrix.image }}:latest ghcr.io/datadog/dd-trace-rb/system-tests/${{ matrix.image }}:latest
docker push ghcr.io/datadog/dd-trace-rb/system-tests/${{ matrix.image }}:latest
build-apps:
strategy:
Expand Down Expand Up @@ -74,6 +86,10 @@ jobs:
uses: actions/checkout@v3
with:
path: 'binaries/dd-trace-rb'
# - name: Pull image
# run: |
# docker pull ghcr.io/datadog/dd-trace-rb/system-tests/${{ matrix.image }}:${{ matrix.app }}
# docker tag ghcr.io/datadog/dd-trace-rb/system-tests/${{ matrix.image }}:${{ matrix.app }} system_tests/${{ matrix.image }}
- name: Log in to the Container registry
run: |
echo ${{ secrets.GITHUB_TOKEN }} | docker login ${{ env.REGISTRY }} -u ${{ github.actor }} --password-stdin
Expand All @@ -90,6 +106,11 @@ jobs:
name: docker-image-${{ matrix.image }}-${{ matrix.app }}-${{ github.run_id }}-${{ github.sha }}
path: images/*
retention-days: 1
- name: Push image
# if: ${{ github.ref == 'refs/heads/master' }}
run: |
docker tag system_tests/${{ matrix.image }} ghcr.io/datadog/dd-trace-rb/system-tests/${{ matrix.image }}:${{ matrix.app }}
docker push ghcr.io/datadog/dd-trace-rb/system-tests/${{ matrix.image }}:${{ matrix.app }}
test:
strategy:
Expand Down

0 comments on commit 9e2577a

Please sign in to comment.