This repository was archived by the owner on Apr 13, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +56
-13
lines changed
Expand file tree Collapse file tree 3 files changed +56
-13
lines changed Original file line number Diff line number Diff line change 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 }}
Original file line number Diff line number Diff line change 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"
You can’t perform that action at this time.
0 commit comments