Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
docker-SUI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
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-SUI
Commits
b8b0def1
Unverified
Commit
b8b0def1
authored
3 years ago
by
Griefed
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
ci: Create new workflow for automated building, tagging, releasing
parent
383fd3cd
No related branches found
Branches containing commit
Tags
1.0.1
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.github/workflows/ci-publish-tag-releas.yml
+66
-0
66 additions, 0 deletions
.github/workflows/ci-publish-tag-releas.yml
with
66 additions
and
0 deletions
.github/workflows/ci-publish-tag-releas.yml
0 → 100644
+
66
−
0
View file @
b8b0def1
name
:
ci-publish-tag
on
:
workflow_dispatch
:
jobs
:
multi-registries
:
runs-on
:
ubuntu-latest
steps
:
# SETUP ENVIRONMENT
-
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
# 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
:
"
App-Collection"
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
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
${{ 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.
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