Skip to content
This repository was archived by the owner on Apr 13, 2022. It is now read-only.

Commit 136e1d5

Browse files
committed
create docker CI workflow
1 parent 4fa1d05 commit 136e1d5

File tree

3 files changed

+56
-13
lines changed

3 files changed

+56
-13
lines changed

.gitattributes

100755100644
File mode changed.

.github/workflows/dockerhub.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Publish to DockerHub
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
release_tag:
7+
description: "Coder Server release tag"
8+
required: true
9+
10+
jobs:
11+
docker:
12+
runs-on: ubuntu-latest
13+
14+
name: Build and publish Docker image
15+
steps:
16+
- name: Checkout the repo
17+
uses: actions/checkout@v2
18+
19+
- name: Set Version
20+
run: |
21+
echo "VERSION=$(echo ${{ github.event.inputs.release_tag }} | sed -nre 's/^[^0-9]*(([0-9]+\.)*[0-9]+).*/\1/p')" >> $GITHUB_ENV
22+
23+
- name: Docker meta
24+
id: meta
25+
uses: docker/metadata-action@v3
26+
with:
27+
images: |
28+
smcr/coder-container
29+
tags: |
30+
type=semver,pattern={{version}},value=v${{ env.VERSION }}
31+
32+
- name: Login to DockerHub
33+
uses: docker/login-action@v1
34+
with:
35+
username: ${{ secrets.DOCKER_ID }}
36+
password: ${{ secrets.DOCKER_SECMAN_TOKEN }}
37+
38+
- name: Build and push
39+
id: docker_build
40+
uses: docker/build-push-action@v2
41+
with:
42+
push: true
43+
tags: ${{ steps.meta.outputs.tags }}

.zshrc

100755100644
Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
export ZSH="/home/coder/.oh-my-zsh"
2-
3-
ZSH_THEME="af-magic"
4-
5-
plugins=( git zsh-syntax-highlighting zsh-autosuggestions )
6-
7-
source $ZSH/oh-my-zsh.sh
8-
9-
alias s="source ~/.zshrc"
10-
alias n="nano ~/.zshrc"
11-
alias update="sudo apt update"
12-
alias upgrade="sudo apt upgrade"
13-
alias py="python3"
1+
export ZSH="/home/coder/.oh-my-zsh"
2+
3+
ZSH_THEME="af-magic"
4+
5+
plugins=( git zsh-syntax-highlighting zsh-autosuggestions )
6+
7+
source $ZSH/oh-my-zsh.sh
8+
9+
alias s="source ~/.zshrc"
10+
alias n="nano ~/.zshrc"
11+
alias update="sudo apt update"
12+
alias upgrade="sudo apt upgrade"
13+
alias py="python3"

0 commit comments

Comments
 (0)