Skip to content

Commit 9192d46

Browse files
committed
ci: fix docker nightly
1 parent 60851b5 commit 9192d46

File tree

1 file changed

+17
-15
lines changed

1 file changed

+17
-15
lines changed

.github/workflows/sharevb-docker-nightly-release.yml

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -53,28 +53,30 @@ jobs:
5353
- ci
5454

5555
steps:
56-
- name: Checkout
57-
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
56+
# Checkout the repository
57+
- name: Checkout repository
58+
uses: actions/checkout@v3
5859

59-
- name: Login to GitHub Container Registry
60-
uses: docker/login-action@v3
60+
# Set up Docker Buildx (to support multi-platform builds)
61+
- name: Set up Docker Buildx
62+
uses: docker/setup-buildx-action@v2
63+
64+
# Log in to GitHub Container Registry (GHCR)
65+
- name: Log in to GitHub Container Registry
66+
uses: docker/login-action@v2
6167
with:
6268
registry: ghcr.io
6369
username: ${{ github.repository_owner }}
6470
password: ${{ secrets.GITHUB_TOKEN }}
6571

66-
- name: Set up QEMU
67-
uses: docker/setup-qemu-action@v3
68-
69-
- name: Set up Docker Buildx
70-
uses: docker/setup-buildx-action@v3
71-
72-
- name: Build and push
72+
# Build and push the Docker image
73+
- name: Build and push Docker image
7374
uses: docker/build-push-action@v5
7475
with:
7576
context: .
76-
file: ./Dockerfile
77-
platforms: linux/amd64,linux/arm64
7877
push: true
79-
tags: |
80-
ghcr.io/sharevb/it-tools:nightly
78+
tags: ghcr.io/${{ github.repository_owner }}/it-tools:nightly
79+
80+
# Optionally log out
81+
- name: Log out from GitHub Container Registry
82+
run: docker logout ghcr.io

0 commit comments

Comments
 (0)