We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 905a946 commit 7c3f0e1Copy full SHA for 7c3f0e1
.github/workflows/docker-image.yml
@@ -7,12 +7,18 @@ on:
7
branches: [ "main" ]
8
9
jobs:
10
-
11
build:
12
13
runs-on: ubuntu-latest
14
15
steps:
16
- - uses: actions/checkout@v4
17
- - name: Build the Docker image
18
- run: docker build . --file Dockerfile --tag cosmify/docs:$(date +%s)
+ - name: 'Checkout GitHub Action'
+ uses: actions/checkout@main
+ - name: 'Login to GitHub Container Registry'
+ uses: docker/login-action@v1
+ with:
+ registry: ghcr.io
19
+ username: ${{github.actor}}
20
+ password: ${{secrets.GITHUB_TOKEN}}
21
+ - name: 'Build & Push Image'
22
+ run: |
23
+ docker build . --tag ghcr.io/cosmify-dev/docs:latest
24
+ docker push ghcr.io/cosmify-dev/docs:latest
0 commit comments