Merge pull request 'Just use the plain docker container' (#9) from simplified-docker-build into master
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Reviewed-on: #9
This commit is contained in:
commit
e90bfb65b7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user