Skip to content

Commit 7223802

Browse files
ghcr images
1 parent e1f93ed commit 7223802

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

.github/workflows/docs.yml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,17 @@ jobs:
1212

1313
steps:
1414
- uses: actions/checkout@v4
15-
- name: Build the Docker image
16-
working-directory: .
17-
run: docker build . --tag invariant-docs:main
18-
- name: Login to Invariant Container Registry
19-
run: echo ${{ secrets.INVARIANT_REGISTRY_PASSWORD }} | docker login -u ${{ secrets.INVARIANT_REGISTRY_USERNAME }} --password-stdin https://images.invariantnet.com
20-
- name: Rename the Docker image
21-
run: docker tag invariant-docs:main images.invariantnet.com/invariant-docs:main
22-
- name: Push the Docker image
23-
run: docker push images.invariantnet.com/invariant-docs:main
15+
- name: Set up Docker Buildx
16+
uses: docker/setup-buildx-action@v2
17+
18+
- name: Login to GitHub Container Registry
19+
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
20+
21+
- name: Build Docs
22+
uses: docker/build-push-action@v5
23+
with:
24+
context: .
25+
file: ./Dockerfile
26+
platforms: linux/amd64
27+
push: true
28+
tags: ghcr.io/${{ github.repository }}/docs:latest

0 commit comments

Comments
 (0)