Skip to content

Commit c028bfb

Browse files
committed
change image build to github repository
1 parent 9aca9b6 commit c028bfb

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

.github/workflows/main.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,22 @@ jobs:
1010
runs-on: ubuntu-latest
1111

1212
steps:
13-
- uses: actions/checkout@v3
13+
- uses: actions/checkout@v4
1414

15-
- uses: docker/setup-buildx-action@v2
15+
- uses: docker/setup-buildx-action@v3
1616

17-
- uses: docker/login-action@v2
17+
- name: Log in to GitHub Container Registry
18+
uses: docker/login-action@v3
1819
with:
19-
username: ${{ secrets.DOCKER_USERNAME }}
20-
password: ${{ secrets.DOCKER_PASSWORD }}
20+
registry: ghcr.io
21+
username: ${{ github.actor }}
22+
password: ${{ secrets.GITHUB_TOKEN }}
2123

22-
- uses: docker/build-push-action@v2
24+
- name: Build and push
25+
uses: docker/build-push-action@v6
2326
with:
2427
context: .
2528
push: true
26-
cache-from: hexletcomponents/data-charts-api:latest
29+
cache-from: ghcr.io/${{ github.repository }}:latest
2730
cache-to: type=inline
28-
tags: hexletcomponents/data-charts-api:latest
31+
tags: ghcr.io/${{ github.repository }}:latest

0 commit comments

Comments
 (0)