Skip to content

Commit

Permalink
Use 1p in actions
Browse files Browse the repository at this point in the history
  • Loading branch information
rbnswartz committed Nov 22, 2024
1 parent 9773dfc commit 03f456d
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,20 @@ jobs:
- uses: FranzDiebold/[email protected]
- 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 && \
Expand Down

0 comments on commit 03f456d

Please sign in to comment.