BUILDX_VERSION=0.12.0
Some checks reported errors
continuous-integration/drone/tag Build encountered an error

This commit is contained in:
Struchkov Mark 2023-12-02 20:42:24 +03:00
parent d7c9e259f9
commit c8a4166304
Signed by: upagge
GPG Key ID: D3018BE7BA428CA6
3 changed files with 85 additions and 8 deletions

View File

@ -6,7 +6,7 @@ name: docker-with-buildx
steps: steps:
- name: docker build an publish - name: docker build an publish
image: docker:20.10.22-dind-alpine3.17 image: hub.docker.struchkov.dev/docker:24.0.7-dind-alpine3.18
environment: environment:
DOCKER_REGISTRY_TOKEN: DOCKER_REGISTRY_TOKEN:
from_secret: DOCKER_REGISTRY_TOKEN from_secret: DOCKER_REGISTRY_TOKEN
@ -19,7 +19,7 @@ steps:
path: /var/run path: /var/run
commands: commands:
- sleep 15 - sleep 15
- echo "$DOCKER_REGISTRY_TOKEN" | docker login docker.io --username $DOCKER_REGISTRY_USER --password-stdin - echo "$DOCKER_REGISTRY_TOKEN" | docker login docker.struchkov.dev --username $DOCKER_REGISTRY_USER --password-stdin
- docker build --no-cache -t "$DOCKER_IMAGE_NAME:latest" -t "$DOCKER_IMAGE_NAME:$DRONE_TAG" . - docker build --no-cache -t "$DOCKER_IMAGE_NAME:latest" -t "$DOCKER_IMAGE_NAME:$DRONE_TAG" .
- docker push "$DOCKER_IMAGE_NAME:latest" - docker push "$DOCKER_IMAGE_NAME:latest"
- docker push "$DOCKER_IMAGE_NAME:$DRONE_TAG" - docker push "$DOCKER_IMAGE_NAME:$DRONE_TAG"
@ -30,7 +30,7 @@ trigger:
services: services:
- name: docker - name: docker
image: docker:20.10.22-dind-alpine3.17 image: hub.docker.struchkov.dev/docker:24.0.7-dind-alpine3.18
privileged: true privileged: true
volumes: volumes:
- name: dockersock - name: dockersock
@ -41,6 +41,6 @@ volumes:
temp: {} temp: {}
--- ---
kind: signature kind: signature
hmac: 8717317b5c00e17259b1386f95862b486027882b40814ab20145c25c9e65984b hmac: cde141b2ae23cfd6aeb7b03d0dc27f1cc42c4da76142a5bb3248db17ebb6e90b
... ...

77
.gitignore vendored Normal file
View File

@ -0,0 +1,77 @@
*.class
*.log
*.ctxt
.mtj.tmp/
*.jar
*.war
*.nar
*.ear
*.zip
*.tar.gz
*.rar
hs_err_pid*
replay_pid*
target/
pom.xml.tag
pom.xml.releaseBackup
pom.xml.versionsBackup
pom.xml.next
release.properties
dependency-reduced-pom.xml
buildNumber.properties
.mvn/timing.properties
.mvn/wrapper/maven-wrapper.jar
.project
.classpath
.idea
cmake-build-*/
*.iws
out/
.idea_modules/
atlassian-ide-plugin.xml
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties
*~
.fuse_hidden*
.directory
.Trash-*
.nfs*
.gradle
**/build/
!src/**/build/
gradle-app.setting
!gradle-wrapper.jar
!gradle-wrapper.properties
.gradletasknamecache
Thumbs.db
Thumbs.db:encryptable
ehthumbs.db
ehthumbs_vista.db
*.stackdump
[Dd]esktop.ini
$RECYCLE.BIN/
*.cab
*.msi
*.msix
*.msm
*.msp
*.lnk
.DS_Store
.AppleDouble
.LSOverride
Icon
._*
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

View File

@ -1,7 +1,7 @@
ARG BUILDX_VERSION=0.10.3 ARG BUILDX_VERSION=0.12.0
ARG DOCKER_VERSION=20.10.23-dind-alpine3.17 ARG DOCKER_VERSION=24.0.7-dind-alpine3.18
FROM alpine AS fetcher FROM hub.docker.struchkov.dev/alpine AS fetcher
RUN apk add curl RUN apk add curl
@ -13,6 +13,6 @@ RUN curl -L \
RUN chmod a+x /docker-buildx RUN chmod a+x /docker-buildx
ARG DOCKER_VERSION ARG DOCKER_VERSION
FROM docker:${DOCKER_VERSION} FROM hub.docker.struchkov.dev/docker:${DOCKER_VERSION}
COPY --from=fetcher /docker-buildx /usr/lib/docker/cli-plugins/docker-buildx COPY --from=fetcher /docker-buildx /usr/lib/docker/cli-plugins/docker-buildx