Just use the plain docker container
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Raoul Snyman 2023-07-29 11:59:29 -07:00
parent e6a13fa4c9
commit e62641a661

View File

@ -23,17 +23,14 @@ steps:
when:
event: tag
nightly-image:
image: woodpeckerci/plugin-docker-buildx
privileged: true
settings:
dockerfile: Dockerfile.nightly
registry: git.snyman.info
username: $DOCKER_USERNAME
password: $DOCKER_TOKEN
repo: git.snyman.info/${CI_REPO_OWNER}/codesmidgen
tags:
- nightly
- ${CI_COMMIT_SHA:0:8}
image: docker
commands:
- "docker login git.snyman.info $DOCKER_USERNAME $DOCKER_TOKEN"
- "docker build -t git.snyman.info/codesmidgen:nightly -t git.snyman.info/codesmidgen:${CI_COMMIT_SHA:0:8} ."
- "docker push git.snyman.info/codesmidgen:nightly"
- "docker push git.snyman.info/codesmidgen:${CI_COMMIT_SHA:0:8}"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
secrets:
- docker_username
- docker_token
@ -41,17 +38,14 @@ steps:
- branch: master
event: push
release-image:
image: woodpeckerci/plugin-docker-buildx
privileged: true
settings:
dockerfile: Dockerfile.release
registry: git.snyman.info
username: $DOCKER_USERNAME
password: $DOCKER_TOKEN
repo: git.snyman.info/${CI_REPO_OWNER}/codesmidgen
tags:
- latest
- ${CI_COMMIT_TAG##v}
image: docker
commands:
- "docker login git.snyman.info $DOCKER_USERNAME $DOCKER_TOKEN"
- "docker build -t git.snyman.info/codesmidgen:latest -t git.snyman.info/codesmidgen:${CI_COMMIT_TAG##v} ."
- "docker push git.snyman.info/codesmidgen:latest"
- "docker push git.snyman.info/codesmidgen:${CI_COMMIT_TAG##v}"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
secrets:
- docker_username
- docker_token