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
|
- name: Configure HTTP registry
|
||||||
run: |
|
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'
|
cat > /tmp/buildkitd.toml <<'EOF'
|
||||||
[registry."batty1039.startdedicated.net:5000"]
|
[registry."batty1039.startdedicated.net:5000"]
|
||||||
http = true
|
http = true
|
||||||
|
|
@ -35,21 +31,21 @@ jobs:
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
- name: Log in to private registry
|
- name: Log in to private registry
|
||||||
uses: docker/login-action@v3 # 👈 Reverted to stable v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: batty1039.startdedicated.net:5000
|
registry: batty1039.startdedicated.net:5000
|
||||||
username: ${{ secrets.REGISTRY_USERNAME }}
|
username: ${{ secrets.REGISTRY_USERNAME }}
|
||||||
password: ${{ secrets.REGISTRY_PASSWORD }}
|
password: ${{ secrets.REGISTRY_PASSWORD }}
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3 # 👈 Reverted to stable v3
|
uses: docker/setup-buildx-action@v3
|
||||||
with:
|
with:
|
||||||
buildkitd-config: /tmp/buildkitd.toml
|
buildkitd-config: /tmp/buildkitd.toml
|
||||||
driver-opts: |
|
driver-opts: |
|
||||||
image=moby/buildkit:master
|
image=moby/buildkit:master
|
||||||
|
|
||||||
- name: Build and push image
|
- name: Build and push image
|
||||||
uses: docker/build-push-action@v6 # 👈 Reverted to stable v6
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
file: ./Dockerfile
|
file: ./Dockerfile
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue