Update .forgejo/workflows/docker-build.yml
This commit is contained in:
@@ -26,36 +26,13 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
DOCKER_HOST: "tcp://docker:2375"
|
DOCKER_HOST: "tcp://docker:2375"
|
||||||
DOCKER_TLS_CERTDIR: ""
|
DOCKER_TLS_CERTDIR: ""
|
||||||
services:
|
|
||||||
docker:
|
|
||||||
image: docker:24.0.5-dind
|
|
||||||
options: >-
|
|
||||||
--privileged
|
|
||||||
env:
|
|
||||||
DOCKER_TLS_CERTDIR: ""
|
|
||||||
steps:
|
|
||||||
- name: Login to the registry
|
|
||||||
uses: docker/login-action@v3
|
|
||||||
with:
|
|
||||||
registry: ${{ env.REGISTRY }}
|
|
||||||
username: ${{ github.actor }}
|
|
||||||
password: ${{ secrets.PACKAGE_TOKEN }}
|
|
||||||
|
|
||||||
- uses: actions/checkout@v3
|
steps:
|
||||||
- name: Install Docker
|
- name: Checkout the repo
|
||||||
run: |
|
uses: actions/checkout@v4
|
||||||
apt-get update
|
|
||||||
apt-get install -y ca-certificates curl gnupg
|
- name: Set up Docker Buildx
|
||||||
install -m 0755 -d /etc/apt/keyrings
|
uses: docker/setup-buildx-action@v3
|
||||||
curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc
|
|
||||||
chmod a+r /etc/apt/keyrings/docker.asc
|
|
||||||
# Add the repository to Apt sources:
|
|
||||||
echo \
|
|
||||||
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian \
|
|
||||||
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
|
|
||||||
tee /etc/apt/sources.list.d/docker.list > /dev/null
|
|
||||||
apt-get update
|
|
||||||
apt-get install -y docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
|
|
||||||
|
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
|
|||||||
Reference in New Issue
Block a user