Skip to content

Commit 456a9bc

Browse files
committed
use ghcr.io for deploy
1 parent 612b28b commit 456a9bc

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

.github/workflows/main.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,20 +28,22 @@ jobs:
2828
if: ${{ github.event_name == 'push' }}
2929

3030
steps:
31-
- uses: actions/checkout@v2
31+
- uses: actions/checkout@v4
3232

33-
- uses: docker/setup-buildx-action@v2
33+
- uses: docker/setup-buildx-action@v3
3434

35-
- uses: docker/login-action@v2
35+
- name: Log in to GitHub Container Registry
36+
uses: docker/login-action@v3
3637
with:
37-
username: ${{ secrets.DOCKER_USERNAME }}
38-
password: ${{ secrets.DOCKER_PASSWORD }}
38+
registry: ghcr.io
39+
username: ${{ github.actor }}
40+
password: ${{ secrets.GITHUB_TOKEN }}
3941

40-
- uses: docker/build-push-action@v3
42+
- name: Build and push
43+
uses: docker/build-push-action@v6
4144
with:
4245
context: .
4346
push: true
44-
file: Dockerfile.app
45-
cache-from: hexletcomponents/software-lifecycle-unstable-app:latest
47+
cache-from: ghcr.io/${{ github.repository }}:latest
4648
cache-to: type=inline
47-
tags: hexletcomponents/software-lifecycle-unstable-app:latest
49+
tags: ghcr.io/${{ github.repository }}:latest

0 commit comments

Comments
 (0)