git actions
This commit is contained in:
parent
d9d890a721
commit
911beb6720
2 changed files with 21 additions and 1 deletions
14
.github/workflows/build-test-push.yml
vendored
14
.github/workflows/build-test-push.yml
vendored
|
|
@ -64,6 +64,18 @@ jobs:
|
|||
- name: Check out source
|
||||
uses: actions/checkout@v5
|
||||
|
||||
- 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
|
||||
insecure = true
|
||||
EOF
|
||||
|
||||
- name: Log in to private registry
|
||||
uses: docker/login-action@v4
|
||||
with:
|
||||
|
|
@ -73,6 +85,8 @@ jobs:
|
|||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v4
|
||||
with:
|
||||
buildkitd-config: /tmp/buildkitd.toml
|
||||
|
||||
- name: Build and push image
|
||||
uses: docker/build-push-action@v7
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue