Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Nitter
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
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
TeDomum
Nitter
Commits
1a3acd25
Unverified
Commit
1a3acd25
authored
4 years ago
by
FireMasterK
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
actions: add docker build (#317)
parent
67e15bb4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.github/workflows/build-docker.yml
+38
-0
38 additions, 0 deletions
.github/workflows/build-docker.yml
.travis.yml
+0
-19
0 additions, 19 deletions
.travis.yml
with
38 additions
and
19 deletions
.github/workflows/build-docker.yml
0 → 100644
+
38
−
0
View file @
1a3acd25
name
:
Docker Multi-Architecture Build
on
:
push
:
paths-ignore
:
-
"
**.md"
branches
:
-
master
jobs
:
build-docker
:
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v2
with
:
fetch-depth
:
0
-
name
:
Set up QEMU
uses
:
docker/setup-qemu-action@v1
with
:
platforms
:
all
-
name
:
Set up Docker Buildx
id
:
buildx
uses
:
docker/setup-buildx-action@v1
with
:
version
:
latest
-
name
:
Login to DockerHub
uses
:
docker/login-action@v1
with
:
username
:
${{ secrets.DOCKER_USERNAME }}
password
:
${{ secrets.DOCKER_PASSWORD }}
-
name
:
Build and push
uses
:
docker/build-push-action@v2
with
:
context
:
.
file
:
./Dockerfile
platforms
:
linux/amd64,linux/arm64
push
:
true
tags
:
zedeus/nitter:latest,zedeus/nitter:${{ github.sha }}
This diff is collapsed.
Click to expand it.
.travis.yml
+
0
−
19
View file @
1a3acd25
jobs
:
include
:
-
stage
:
build
if
:
(NOT type IN (pull_request)) AND (branch = master)
language
:
minimal
services
:
-
docker
script
:
-
docker build -t $IMAGE_NAME:$TRAVIS_COMMIT .
-
echo $DOCKERHUB_PASSWORD | docker login -u $DOCKERHUB_USERNAME --password-stdin
-
docker push $IMAGE_NAME:$TRAVIS_COMMIT
-
stage
:
deploy
if
:
(NOT type IN (pull_request)) AND (branch = master)
language
:
minimal
services
:
-
docker
script
:
-
docker pull $IMAGE_NAME:$TRAVIS_COMMIT
-
docker tag $IMAGE_NAME:$TRAVIS_COMMIT $IMAGE_NAME:latest
-
echo $DOCKERHUB_PASSWORD | docker login -u $DOCKERHUB_USERNAME --password-stdin
-
docker push $IMAGE_NAME:latest
-
stage
:
test
if
:
(NOT type IN (pull_request)) AND (branch = master)
dist
:
bionic
...
...
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