-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* original version * on workflow_dispatch - wip * on workflow_dispatch - wip * env * start debug * add _AGENT_ROOT_DIR env with default value * start debug * debug mode with disabled telemetry * build-push-dev workflow * remove file * dummy-server-app works * cache gha * fix agent sources * pip sly * remove version * fix LABEL_VERSION * build on release (#2) * build on release * Rename release-build-push-dev to build-push-release * rename gha name * Update build-push-release.yml * Update build-push-release.yml * no label_version Co-authored-by: Pavel Bartsits <[email protected]>
- Loading branch information
1 parent
7885cdb
commit 07111fa
Showing
9 changed files
with
100 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: build-push-release | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v2 | ||
- | ||
name: Write Tag to ENV variable | ||
run: echo "LABEL_VERSION=${GITHUB_REF_NAME:1}" >> $GITHUB_ENV | ||
- | ||
name: Login to DockerHub | ||
uses: docker/login-action@v1 | ||
with: | ||
username: ${{ secrets.DOCKER_USERNAME_COMMUNITY }} | ||
password: ${{ secrets.DOCKER_TOKEN_COMMUNITY }} | ||
- | ||
name: Login to Docker Supervisely Enterprise | ||
uses: docker/login-action@v1 | ||
with: | ||
registry: ${{ secrets.DOCKER_ENTERPRISE_REGISTRY }} | ||
username: ${{ secrets.DOCKER_USERNAME_ENTERPRISE }} | ||
password: ${{ secrets.DOCKER_PASSWORD_ENTERPRISE }} | ||
- | ||
name: Get Docker Labels from python script | ||
run: python .github/workflows/docker_labels.py | ||
- | ||
name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v1 | ||
- | ||
name: Build and push | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: ./ | ||
file: ./Dockerfile | ||
builder: ${{ steps.buildx.outputs.name }} | ||
push: true | ||
tags: | | ||
supervisely/agent:dev | ||
supervisely/agent:${{ env.LABEL_VERSION }} | ||
${{ secrets.DOCKER_ENTERPRISE_REGISTRY }}/agent:dev | ||
${{ secrets.DOCKER_ENTERPRISE_REGISTRY }}/agent:${{ env.LABEL_VERSION }} | ||
build-args: | | ||
LABEL_VERSION=agent:${{ env.LABEL_VERSION }} | ||
LABEL_INFO=${{ env.LABEL_INFO }} | ||
LABEL_MODES=${{ env.LABEL_MODES }} | ||
LABEL_README=${{ env.LABEL_README }} | ||
LABEL_BUILT_AT=${{ env.LABEL_BUILT_AT }} | ||
# cache-from: type=registry,ref=supervisely/agent:cache | ||
# cache-to: type=registry,ref=supervisely/agent:cache,mode=max | ||
cache-from: type=gha | ||
cache-to: type=gha,mode=max |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
__pycache__ | ||
*.pyc | ||
*.pyo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters