File tree Expand file tree Collapse file tree 1 file changed +14
-9
lines changed
Expand file tree Collapse file tree 1 file changed +14
-9
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments