Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
docker-D-Zone
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
JetBrains YouTrack
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Griefed
docker-D-Zone
Commits
1414c49d
Commit
1414c49d
authored
4 years ago
by
Griefed
Browse files
Options
Downloads
Patches
Plain Diff
ci: Implement changes learned from ServerPackCreator CI/CD-Pipeline
parent
58f49057
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.github/workflows/ci-publish-latest.yml
+0
-55
0 additions, 55 deletions
.github/workflows/ci-publish-latest.yml
.github/workflows/ci-publish-tag.yml
+42
-39
42 additions, 39 deletions
.github/workflows/ci-publish-tag.yml
.gitignore
+3
-0
3 additions, 0 deletions
.gitignore
with
45 additions
and
94 deletions
.github/workflows/ci-publish-latest.yml
deleted
100644 → 0
+
0
−
55
View file @
58f49057
name
:
ci-publish-latest
on
:
push
:
branches
:
-
lsiobase/alpine
jobs
:
multi-registries
:
runs-on
:
ubuntu-latest
steps
:
-
name
:
Checkout
uses
:
actions/checkout@v2
-
name
:
Set up QEMU
uses
:
docker/setup-qemu-action@v1
-
name
:
Set up Docker Buildx
uses
:
docker/setup-buildx-action@v1
-
name
:
Login to DockerHub
uses
:
docker/login-action@v1
with
:
username
:
${{ secrets.DOCKERHUB_USERNAME }}
password
:
${{ secrets.DOCKERHUB_TOKEN }}
-
name
:
Login to GitHub Container Registry
uses
:
docker/login-action@v1
with
:
registry
:
ghcr.io
username
:
${{ github.repository_owner }}
password
:
${{ secrets.CR_PAT }}
-
name
:
Build and push port
uses
:
docker/build-push-action@v2
with
:
context
:
.
file
:
./Dockerfile.port
platforms
:
linux/amd64,linux/arm/v7,linux/arm64
push
:
true
tags
:
|
${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_REPO }}:port
ghcr.io/${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_REPO }}:port
-
name
:
Build and push proxy
uses
:
docker/build-push-action@v2
with
:
context
:
.
file
:
./Dockerfile.proxy
platforms
:
linux/amd64,linux/arm/v7,linux/arm64
push
:
true
tags
:
|
${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_REPO }}:proxy
ghcr.io/${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_REPO }}:proxy
\ No newline at end of file
This diff is collapsed.
Click to expand it.
.github/workflows/ci-publish-tag.yml
+
42
−
39
View file @
1414c49d
name
:
ci-publish-tag
on
:
push
:
tags
:
-
'
*.*'
workflow_dispatch
:
jobs
:
multi-registries
:
runs-on
:
ubuntu-latest
steps
:
-
name
:
Checkout
# SETUP ENVIRONMENT
-
name
:
Checkout
uses
:
actions/checkout@v2
-
name
:
Set up QEMU
-
name
:
Set up QEMU
uses
:
docker/setup-qemu-action@v1
-
name
:
Set up Docker Buildx
-
name
:
Set up Docker Buildx
uses
:
docker/setup-buildx-action@v1
-
name
:
Get the version
id
:
vars
run
:
echo ::set-output name=tag::$(echo ${GITHUB_REF:10})
-
name
:
Login to DockerHub
uses
:
docker/login-action@v1
# GENERATE CHANGELOG, TAG, RELEASE
-
id
:
conventional_changelog
uses
:
ardalanamini/auto-changelog@master
with
:
token
:
${{ secrets.GITHUB_TOKEN }}
-
id
:
compute_tag
uses
:
craig-day/compute-tag@v11
with
:
github_token
:
${{ secrets.GITHUB_TOKEN }}
version_scheme
:
semantic
version_type
:
patch
# MAJOR.MINOR.PATCH
-
name
:
Create Release
id
:
create_release
uses
:
actions/create-release@latest
env
:
GITHUB_TOKEN
:
${{ secrets.GITHUB_TOKEN }}
with
:
tag_name
:
${{ steps.compute_tag.outputs.next_tag }}
release_name
:
"
D-Zone"
body
:
|
Automatic release of version: **${{ steps.compute_tag.outputs.next_tag }}**
**Changes in this release:**
${{ steps.conventional_changelog.outputs.changelog }}
draft
:
false
prerelease
:
false
# DOCKER RELATED
-
name
:
Login to DockerHub
uses
:
docker/login-action@v1
with
:
username
:
${{ secrets.DOCKERHUB_USERNAME }}
password
:
${{ secrets.DOCKERHUB_TOKEN }}
-
name
:
Login to GitHub Container Registry
uses
:
docker/login-action@v1
-
name
:
Login to GitHub Container Registry
uses
:
docker/login-action@v1
with
:
registry
:
ghcr.io
username
:
${{ github.repository_owner }}
password
:
${{ secrets.CR_PAT }}
-
name
:
Build and push port
uses
:
docker/build-push-action@v2
with
:
context
:
.
file
:
./Dockerfile.port
platforms
:
linux/amd64,linux/arm/v7,linux/arm64
push
:
true
tags
:
|
${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_REPO }}:port
ghcr.io/${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_REPO }}:port
${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_REPO }}:port-${{steps.vars.outputs.tag}}
ghcr.io/${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_REPO }}:port-${{steps.vars.outputs.tag}}
-
name
:
Build and push proxy
-
name
:
Build and push
uses
:
docker/build-push-action@v2
with
:
context
:
.
file
:
./Dockerfile
.proxy
file
:
./Dockerfile
platforms
:
linux/amd64,linux/arm/v7,linux/arm64
push
:
true
tags
:
|
${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_REPO }}:proxy
ghcr.io/${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_REPO }}:proxy
${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_REPO }}:proxy-${{steps.vars.outputs.tag}}
ghcr.io/${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_REPO }}:proxy-${{steps.vars.outputs.tag}}
\ No newline at end of file
${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_REPO }}:latest
ghcr.io/${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_REPO }}:latest
${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_REPO }}:${{ steps.compute_tag.outputs.next_tag }}
ghcr.io/${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_REPO }}:${{ steps.compute_tag.outputs.next_tag }}
This diff is collapsed.
Click to expand it.
.gitignore
+
3
−
0
View file @
1414c49d
...
...
@@ -16,3 +16,6 @@ $RECYCLE.BIN/
# Windows shortcuts
*.lnk
# IntelliJ Idea
.idea
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment