Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
Hoppscotch
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Self hosted
External docker images
Hoppscotch
Commits
e95ebb92
Commit
e95ebb92
authored
1 year ago
by
Andrew Bastin
Browse files
Options
Downloads
Patches
Plain Diff
chore: add release tag ci pipeline to push to docker hub
parent
57365eea
Branches
Branches containing commit
Tags
2023.8.0
Tags containing commit
No related merge requests found
Checking pipeline status
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.github/workflows/release-push-docker.yml
+66
-0
66 additions, 0 deletions
.github/workflows/release-push-docker.yml
with
66 additions
and
0 deletions
.github/workflows/release-push-docker.yml
0 → 100644
+
66
−
0
View file @
e95ebb92
name
:
"
Push
containers
to
Docker
Hub
on
release"
on
:
push
:
tags
:
-
'
*.*.*'
jobs
:
build
:
runs-on
:
ubuntu-latest
steps
:
-
name
:
Checkout
uses
:
actions/checkout@v3
-
name
:
Setup environment
run
:
cp .env.example .env
-
name
:
Log in to Docker Hub
uses
:
docker/login-action@v2
with
:
username
:
${{ secrets.DOCKER_USERNAME }}
password
:
${{ secrets.DOCKER_PASSWORD }}
-
name
:
Build and push `${{ secrets.DOCKER_BACKEND_CONTAINER_NAME }}`
uses
:
docker/build-push-action@v4
with
:
context
:
.
file
:
./prod.Dockerfile
target
:
backend
push
:
true
tags
:
|
${{ secrets.DOCKER_ORG_NAME }}/${{ secrets.DOCKER_BACKEND_CONTAINER_NAME }}:latest
${{ secrets.DOCKER_ORG_NAME }}/${{ secrets.DOCKER_BACKEND_CONTAINER_NAME }}:${{ github.ref_name }}
-
name
:
Build and push `${{ secrets.DOCKER_FRONTEND_CONTAINER_NAME }}`
uses
:
docker/build-push-action@v4
with
:
context
:
.
file
:
./prod.Dockerfile
target
:
app
push
:
true
tags
:
|
${{ secrets.DOCKER_ORG_NAME }}/${{ secrets.DOCKER_FRONTEND_CONTAINER_NAME }}:latest
${{ secrets.DOCKER_ORG_NAME }}/${{ secrets.DOCKER_FRONTEND_CONTAINER_NAME }}:${{ github.ref_name }}
-
name
:
Build and push `${{ secrets.DOCKER_SH_ADMIN_CONTAINER_NAME }}`
uses
:
docker/build-push-action@v4
with
:
context
:
.
file
:
./prod.Dockerfile
target
:
sh_admin
push
:
true
tags
:
|
${{ secrets.DOCKER_ORG_NAME }}/${{ secrets.DOCKER_SH_ADMIN_CONTAINER_NAME }}:latest
${{ secrets.DOCKER_ORG_NAME }}/${{ secrets.DOCKER_SH_ADMIN_CONTAINER_NAME }}:${{ github.ref_name }}
-
name
:
Build and push `${{ secrets.DOCKER_AIO_CONTAINER_NAME }}`
uses
:
docker/build-push-action@v4
with
:
context
:
.
file
:
./prod.Dockerfile
target
:
aio
push
:
true
tags
:
|
${{ secrets.DOCKER_ORG_NAME }}/${{ secrets.DOCKER_AIO_CONTAINER_NAME }}:latest
${{ secrets.DOCKER_ORG_NAME }}/${{ secrets.DOCKER_AIO_CONTAINER_NAME }}:${{ github.ref_name }}
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