added docker login

This commit is contained in:
iadgovuser26 2022-04-12 18:12:14 -04:00
parent 358a3f43f0
commit cb4426ceb7
2 changed files with 3 additions and 9 deletions

View File

@ -2,7 +2,7 @@ version: "3.1"
services:
aca:
image: ghcr.io/nsacyber/hirs/aca:latest
image: ghcr.io/nsacyber/hirs/aca-ci:latest
container_name: hirs-aca1
volumes:
- ../../:/HIRS
@ -18,7 +18,7 @@ services:
- ${HIRS_ACA_HOSTNAME}
tpmprovisioner:
image: ghcr.io/nsacyber/hirs/tpm2provisioner:latest
image: ghcr.io/nsacyber/hirs/tpm2provisioner-ci:latest
container_name: hirs-provisioner1-tpm2
depends_on:
- aca

View File

@ -23,18 +23,12 @@ jobs:
distribution: 'adopt'
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file
- name: Login to the Github Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: ACA TPM2 Tests
continue-on-error: true
shell: bash
run: |
sudo apt-get install -y curl
echo ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} | docker login -u ${{ secrets.DOCKER_HUB_USERNAME }} --password-stdin
echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin
bash .ci/system-tests/run_system_tests.sh
- name: Archive System Test Log files
uses: actions/upload-artifact@v2