Skip to content

Commit

Permalink
ci: try using the docker login action instead
Browse files Browse the repository at this point in the history
  • Loading branch information
stevana committed Oct 21, 2024
1 parent 27e2911 commit 8491bc5
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,18 @@ jobs:

# - name: Build documentation
# run: cabal haddock all
#

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build static binary
run: |
cd release && \
echo ${{ secrets.CR_PAT }} | \
docker login ghrc.io --username spex-lang --password-stdin && \
docker pull ghcr.io/spex-lang/static-build@sha256:adc614ba1dc682134485a901661f82e9ce23e0044accb71052e862dfd0b14809 && \
docker run \
-v "${PWD}/..":/mnt/:ro \
Expand Down

0 comments on commit 8491bc5

Please sign in to comment.