mirror of
https://github.com/sharevb/it-tools.git
synced 2026-11-22 14:01:42 +03:00
ci: fix docker nightly
This commit is contained in:
1 parent
60851b57a4
commit
9192d46f34
1 file changed
+17
-15
@@ -53,28 +53,30 @@ jobs:
|
|||||||
- ci
|
- ci
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
# Checkout the repository
|
||||||
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Login to GitHub Container Registry
|
# Set up Docker Buildx (to support multi-platform builds)
|
||||||
uses: docker/login-action@v3
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v2
|
||||||
|
|
||||||
|
# Log in to GitHub Container Registry (GHCR)
|
||||||
|
- name: Log in to GitHub Container Registry
|
||||||
|
uses: docker/login-action@v2
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: ${{ github.repository_owner }}
|
username: ${{ github.repository_owner }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Set up QEMU
|
# Build and push the Docker image
|
||||||
uses: docker/setup-qemu-action@v3
|
- name: Build and push Docker image
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
|
||||||
uses: docker/setup-buildx-action@v3
|
|
||||||
|
|
||||||
- name: Build and push
|
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
file: ./Dockerfile
|
|
||||||
platforms: linux/amd64,linux/arm64
|
|
||||||
push: true
|
push: true
|
||||||
tags: |
|
tags: ghcr.io/${{ github.repository_owner }}/it-tools:nightly
|
||||||
ghcr.io/sharevb/it-tools:nightly
|
|
||||||
|
# Optionally log out
|
||||||
|
- name: Log out from GitHub Container Registry
|
||||||
|
run: docker logout ghcr.io
|
||||||
Reference in new issue
Block a user