Skip to content

Commit

Permalink
Align secret name with intel#16384
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexeySachkov committed Dec 16, 2024
1 parent 0964ce8 commit 0625177
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/sycl-containers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jobs:
file: ${{ matrix.file }}
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
sycl_passwd: ${{ secrets.DOCKER_SUDO_PASSWORD }}
sycl_ci_passwd: ${{ secrets.DOCKER_SUDO_PASSWORD }}
tags: |
ghcr.io/${{ github.repository }}/${{ matrix.file }}:${{ matrix.tag }}-${{ github.sha }}
ghcr.io/${{ github.repository }}/${{ matrix.file }}:${{ matrix.tag }}
Expand Down
5 changes: 2 additions & 3 deletions devops/actions/build_container/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ inputs:
file:
description: "Dockerfile"
required: true
sycl_passwd:
sycl_ci_passwd:
description: "Password to assign to sycl user within a container"
required: true

Expand All @@ -34,7 +34,6 @@ runs:
registry: ghcr.io
username: ${{ inputs.username }}
password: ${{ inputs.password }}
sycl_passwd: ${{ inputs.sycl_passwd }}
- name: Build and Push Container
uses: docker/[email protected]
with:
Expand All @@ -45,4 +44,4 @@ runs:
file: ${{ github.workspace }}/devops/containers/${{ inputs.file }}.Dockerfile
secrets: |
github_token=${{ github.token }}
sycl_passwd=${{ inputs.sycl_passwd }}
sycl_ci_passwd=${{ inputs.sycl_ci_passwd }}
2 changes: 1 addition & 1 deletion devops/containers/ubuntu2204_base.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ COPY scripts/install_build_tools.sh /install.sh
RUN /install.sh

COPY scripts/create-sycl-user.sh /user-setup.sh
RUN --mount=type=secret,id=sycl_passwd /user-setup.sh
RUN --mount=type=secret,id=sycl_ci_passwd /user-setup.sh

COPY actions/cached_checkout /actions/cached_checkout
COPY actions/cleanup /actions/cleanup
Expand Down
2 changes: 1 addition & 1 deletion devops/containers/ubuntu2204_build.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ RUN apt update && apt install -yqq rocm-dev && \
rm -rf /var/lib/apt/lists/*

COPY scripts/create-sycl-user.sh /user-setup.sh
RUN --mount=type=secret,id=sycl_passwd /user-setup.sh
RUN --mount=type=secret,id=sycl_ci_passwd /user-setup.sh

COPY scripts/docker_entrypoint.sh /docker_entrypoint.sh

Expand Down
2 changes: 1 addition & 1 deletion devops/containers/ubuntu2404_base.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ COPY scripts/install_build_tools.sh /install.sh
RUN /install.sh

COPY scripts/create-sycl-user.sh /user-setup.sh
RUN --mount=type=secret,id=sycl_passwd /user-setup.sh
RUN --mount=type=secret,id=sycl_ci_passwd /user-setup.sh

COPY actions/cached_checkout /actions/cached_checkout
COPY actions/cleanup /actions/cleanup
Expand Down

0 comments on commit 0625177

Please sign in to comment.