mirror of
https://github.com/TrustTunnel/TrustTunnel.git
synced 2026-07-09 17:18:36 +00:00
Pull request 191: feat vpn-libs-endpoint: add plan for pushing docker image to DockerHub
Squashed commit of the following:
commit a15d7b08a1084a00f5b76cde659c4b7979c76c6a
Author: Radmir Sadikov <r.sadikov@adguard.com>
Date: Tue Apr 7 12:42:48 2026 +0400
delete unused 'dependency' block
commit 692e86827b944215434826a502f5f5fd250ac911
Author: Radmir Sadikov <r.sadikov@adguard.com>
Date: Tue Apr 7 12:28:12 2026 +0400
feat vpn-libs-endpoint: add plan for pushing docker image to DockerHub
This commit is contained in:
parent
99f8021275
commit
d11d4c01fe
3 changed files with 69 additions and 16 deletions
|
|
@ -4,5 +4,7 @@
|
|||
!include 'run-tests.yaml'
|
||||
---
|
||||
!include 'deploy.yaml'
|
||||
---
|
||||
!include 'deploy-docker.yaml'
|
||||
---
|
||||
!include 'lint.yaml'
|
||||
|
|
|
|||
67
bamboo-specs/deploy-docker.yaml
Normal file
67
bamboo-specs/deploy-docker.yaml
Normal file
|
|
@ -0,0 +1,67 @@
|
|||
---
|
||||
version: 2
|
||||
triggers: [ ]
|
||||
|
||||
plan:
|
||||
project-key: CL
|
||||
key: TTED
|
||||
name: TrustTunnel - Deploy Docker Image
|
||||
|
||||
stages:
|
||||
- Build and Push Docker Image:
|
||||
manual: false
|
||||
final: false
|
||||
jobs:
|
||||
- Build and Push Docker Image
|
||||
|
||||
Build and Push Docker Image:
|
||||
key: BDI
|
||||
tasks:
|
||||
- checkout:
|
||||
description: Checkout Default Repository
|
||||
force-clean-build: 'true'
|
||||
- script:
|
||||
interpreter: SHELL
|
||||
scripts:
|
||||
- |-
|
||||
#!/bin/bash
|
||||
set -x -e
|
||||
|
||||
VERSION=$(cat endpoint/Cargo.toml | grep "version = " | head -n 1 | sed -e 's/version = "\(.*\)"/\1/')
|
||||
TAG=v${VERSION}
|
||||
|
||||
DOCKER_IMAGE_REPO="trusttunnel/trusttunnel-endpoint"
|
||||
DOCKER_IMAGE_VERSION_TAG="${DOCKER_IMAGE_REPO}:${TAG}"
|
||||
DOCKER_IMAGE_LATEST_TAG="${DOCKER_IMAGE_REPO}:latest"
|
||||
|
||||
set +x
|
||||
echo "${bamboo.trusttunnelDockerHubPassword}" | docker login -u "${bamboo.trusttunnelDockerHubUsername}" --password-stdin
|
||||
set -x
|
||||
|
||||
docker buildx create --name trusttunnel-builder --use || docker buildx use trusttunnel-builder
|
||||
docker buildx build \
|
||||
--target trusttunnel-endpoint \
|
||||
--platform linux/amd64,linux/arm64 \
|
||||
-t "${DOCKER_IMAGE_VERSION_TAG}" \
|
||||
-t "${DOCKER_IMAGE_LATEST_TAG}" \
|
||||
--push .
|
||||
requirements:
|
||||
- adg-privileged-docker
|
||||
artifact-subscriptions: [ ]
|
||||
artifacts: [ ]
|
||||
|
||||
repositories:
|
||||
- core-libs/vpn-libs-endpoint:
|
||||
scope: global
|
||||
|
||||
branches:
|
||||
create: manually
|
||||
delete: never
|
||||
link-to-jira: true
|
||||
|
||||
notifications: [ ]
|
||||
|
||||
labels: [ ]
|
||||
|
||||
other:
|
||||
concurrent-build-plugin: system-default
|
||||
|
|
@ -278,22 +278,6 @@ Deploy artifacts:
|
|||
gh release upload ${TAG} ../build_linux/trusttunnel-v${VERSION}-linux-aarch64-dbgsym.tar.gz
|
||||
gh release upload ${TAG} ../build_macos/trusttunnel-v${VERSION}-macos-universal.tar.gz
|
||||
gh release upload ${TAG} ../build_macos/trusttunnel-v${VERSION}-macos-universal-dbgsym.tar.gz
|
||||
|
||||
DOCKER_IMAGE_REPO="trusttunnel/trusttunnel-endpoint"
|
||||
DOCKER_IMAGE_VERSION_TAG="${DOCKER_IMAGE_REPO}:${TAG}"
|
||||
DOCKER_IMAGE_LATEST_TAG="${DOCKER_IMAGE_REPO}:latest"
|
||||
|
||||
set +x
|
||||
echo "${bamboo.trusttunnelDockerHubPassword}" | docker login -u "${bamboo.trusttunnelDockerHubUsername}" --password-stdin
|
||||
set -x
|
||||
|
||||
docker buildx create --name trusttunnel-builder --use || docker buildx use trusttunnel-builder
|
||||
docker buildx build \
|
||||
--target trusttunnel-endpoint \
|
||||
--platform linux/amd64,linux/arm64 \
|
||||
-t "${DOCKER_IMAGE_VERSION_TAG}" \
|
||||
-t "${DOCKER_IMAGE_LATEST_TAG}" \
|
||||
--push .
|
||||
requirements:
|
||||
- adg-privileged-docker
|
||||
artifact-subscriptions:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue