From 03f456de6ab9a579e7aff75927f7242cb90cec01 Mon Sep 17 00:00:00 2001 From: Reuben Swartz Date: Fri, 22 Nov 2024 10:20:55 -0500 Subject: [PATCH] Use 1p in actions --- .github/workflows/docker-build.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index 1b1fe86..4c84d07 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -34,11 +34,20 @@ jobs: - uses: FranzDiebold/github-env-vars-action@v2.7.0 - uses: docker/setup-qemu-action@v2 - uses: docker/setup-buildx-action@v2 + - name: Load secret + uses: 1password/load-secrets-action@v1 + with: + # Export loaded secrets as environment variables + export-env: true + env: + OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }} + DOCKER_HUB_USER: "op://DevOps/dockerhub-adminwa-token/username" + DOCKER_HUB_TOKEN: "op://DevOps/dockerhub-adminwa-token/credential" - name: Login to Docker Hub uses: docker/login-action@v2 with: - username: ${{ secrets.DOCKER_HUB_USER }} - password: ${{ secrets.DOCKER_HUB_TOKEN }} + username: ${{ env.DOCKER_HUB_USER }} + password: ${{ env.DOCKER_HUB_TOKEN }} - name: Set docker tags run: | echo "TAG_SHA=wycliffeassociates/linting-results:$GITHUB_SHA" >> $GITHUB_ENV && \