Skip to content

Commit

Permalink
Login to ghcr first
Browse files Browse the repository at this point in the history
  • Loading branch information
glormph committed Oct 29, 2024
1 parent 0728622 commit ee0fced
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,23 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup buildx
uses: docker/setup-buildx-action@v3

- name: Get USER_ID to env
run: echo "USER_ID=$(id -u)" >> $GITHUB_ENV

- name: Get GROUP_ID to env
run: echo "GROUP_ID=$(id -g)" >> $GITHUB_ENV

- name: Login to Docker Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- run: docker buildx bake --file src/docker/testing-bake.yml --file src/docker/docker-compose-gha-cache.json
- run: |
echo docker compose --env-file src/docker/.compose.testing.env \
Expand All @@ -41,6 +52,12 @@ jobs:
run: echo "USER_ID=$(id -u)" >> $GITHUB_ENV
- name: Get GROUP_ID to env
run: echo "GROUP_ID=$(id -g)" >> $GITHUB_ENV
- name: Login to Docker Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- run: docker buildx bake --file src/docker/testing-bake.yml --file src/docker/docker-compose-gha-cache.json
- run: bash .github/run_tests_integration.sh

Expand Down

0 comments on commit ee0fced

Please sign in to comment.