test: fix build?
This commit is contained in:
parent
dfeab2255e
commit
5344f249c7
1 changed files with 3 additions and 7 deletions
10
.github/workflows/publish-image.yml
vendored
10
.github/workflows/publish-image.yml
vendored
|
|
@ -24,10 +24,6 @@ jobs:
|
|||
|
||||
- name: Configure HTTP registry
|
||||
run: |
|
||||
sudo mkdir -p /etc/docker
|
||||
echo '{"insecure-registries":["batty1039.startdedicated.net:5000"]}' | \
|
||||
sudo tee /etc/docker/daemon.json >/dev/null
|
||||
sudo systemctl restart docker
|
||||
cat > /tmp/buildkitd.toml <<'EOF'
|
||||
[registry."batty1039.startdedicated.net:5000"]
|
||||
http = true
|
||||
|
|
@ -35,21 +31,21 @@ jobs:
|
|||
EOF
|
||||
|
||||
- name: Log in to private registry
|
||||
uses: docker/login-action@v3 # 👈 Reverted to stable v3
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: batty1039.startdedicated.net:5000
|
||||
username: ${{ secrets.REGISTRY_USERNAME }}
|
||||
password: ${{ secrets.REGISTRY_PASSWORD }}
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3 # 👈 Reverted to stable v3
|
||||
uses: docker/setup-buildx-action@v3
|
||||
with:
|
||||
buildkitd-config: /tmp/buildkitd.toml
|
||||
driver-opts: |
|
||||
image=moby/buildkit:master
|
||||
|
||||
- name: Build and push image
|
||||
uses: docker/build-push-action@v6 # 👈 Reverted to stable v6
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: .
|
||||
file: ./Dockerfile
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue