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: services:
aca: aca:
image: ghcr.io/nsacyber/hirs/aca:latest image: ghcr.io/nsacyber/hirs/aca-ci:latest
container_name: hirs-aca1 container_name: hirs-aca1
volumes: volumes:
- ../../:/HIRS - ../../:/HIRS
@ -18,7 +18,7 @@ services:
- ${HIRS_ACA_HOSTNAME} - ${HIRS_ACA_HOSTNAME}
tpmprovisioner: tpmprovisioner:
image: ghcr.io/nsacyber/hirs/tpm2provisioner:latest image: ghcr.io/nsacyber/hirs/tpm2provisioner-ci:latest
container_name: hirs-provisioner1-tpm2 container_name: hirs-provisioner1-tpm2
depends_on: depends_on:
- aca - aca

View File

@ -23,18 +23,12 @@ jobs:
distribution: 'adopt' distribution: 'adopt'
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file 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 - name: ACA TPM2 Tests
continue-on-error: true continue-on-error: true
shell: bash shell: bash
run: | run: |
sudo apt-get install -y curl 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 bash .ci/system-tests/run_system_tests.sh
- name: Archive System Test Log files - name: Archive System Test Log files
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2