Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
docker-ICEcoder
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-ICEcoder
Commits
27df9939
Commit
27df9939
authored
3 years ago
by
Griefed
Browse files
Options
Downloads
Patches
Plain Diff
ci: Implement changes learned from ServerPackCreator CI/CD-Pipeline
parent
d652a07c
No related branches found
Branches containing commit
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
-44
0 additions, 44 deletions
.github/workflows/ci-publish-latest.yml
.github/workflows/ci-publish-tag.yml
+39
-23
39 additions, 23 deletions
.github/workflows/ci-publish-tag.yml
.gitignore
+3
-0
3 additions, 0 deletions
.gitignore
with
42 additions
and
67 deletions
.github/workflows/ci-publish-latest.yml
deleted
100644 → 0
+
0
−
44
View file @
d652a07c
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
uses
:
docker/build-push-action@v2
with
:
context
:
.
file
:
./Dockerfile
platforms
:
linux/amd64,linux/arm/v7,linux/arm64
push
:
true
tags
:
|
${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_REPO }}:latest
ghcr.io/${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_REPO }}:latest
\ No newline at end of file
This diff is collapsed.
Click to expand it.
.github/workflows/ci-publish-tag.yml
+
39
−
23
View file @
27df9939
name
:
ci-publish-tag
name
:
ci-publish-tag
on
:
on
:
push
:
workflow_dispatch
:
tags
:
-
'
*.*'
jobs
:
jobs
:
multi-registries
:
multi-registries
:
runs-on
:
ubuntu-latest
runs-on
:
ubuntu-latest
steps
:
steps
:
-
# SETUP ENVIRONMENT
name
:
Checkout
-
name
:
Checkout
uses
:
actions/checkout@v2
uses
:
actions/checkout@v2
-
-
name
:
Set up QEMU
name
:
Set up QEMU
uses
:
docker/setup-qemu-action@v1
uses
:
docker/setup-qemu-action@v1
-
-
name
:
Set up Docker Buildx
name
:
Set up Docker Buildx
uses
:
docker/setup-buildx-action@v1
uses
:
docker/setup-buildx-action@v1
-
# GENERATE CHANGELOG, TAG, RELEASE
name
:
Get the version
-
id
:
conventional_changelog
id
:
vars
uses
:
ardalanamini/auto-changelog@master
run
:
echo ::set-output name=tag::$(echo ${GITHUB_REF:10})
with
:
-
token
:
${{ secrets.GITHUB_TOKEN }}
name
:
Login to DockerHub
-
id
:
compute_tag
uses
:
docker/login-action@v1
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
:
"
ICEcoder"
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
:
with
:
username
:
${{ secrets.DOCKERHUB_USERNAME }}
username
:
${{ secrets.DOCKERHUB_USERNAME }}
password
:
${{ secrets.DOCKERHUB_TOKEN }}
password
:
${{ secrets.DOCKERHUB_TOKEN }}
-
-
name
:
Login to GitHub Container Registry
name
:
Login to GitHub Container Registry
uses
:
docker/login-action@v1
uses
:
docker/login-action@v1
with
:
with
:
registry
:
ghcr.io
registry
:
ghcr.io
username
:
${{ github.repository_owner }}
username
:
${{ github.repository_owner }}
password
:
${{ secrets.CR_PAT }}
password
:
${{ secrets.CR_PAT }}
-
-
name
:
Build and push
name
:
Build and push
uses
:
docker/build-push-action@v2
uses
:
docker/build-push-action@v2
with
:
with
:
context
:
.
context
:
.
...
@@ -46,5 +62,5 @@ jobs:
...
@@ -46,5 +62,5 @@ jobs:
tags
:
|
tags
:
|
${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_REPO }}:latest
${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_REPO }}:latest
ghcr.io/${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_REPO }}:latest
ghcr.io/${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_REPO }}:latest
${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_REPO }}:${{steps.
vars
.outputs.tag}}
${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_REPO }}:${{
steps.
compute_tag
.outputs.
next_
tag
}}
ghcr.io/${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_REPO }}:${{steps.
vars
.outputs.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 @
27df9939
...
@@ -16,3 +16,6 @@ $RECYCLE.BIN/
...
@@ -16,3 +16,6 @@ $RECYCLE.BIN/
# Windows shortcuts
# Windows shortcuts
*.lnk
*.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