Skip to content

Commit

Permalink
Docker CICD (#80)
Browse files Browse the repository at this point in the history
* for github action cicd cache

* add docker release github action
  • Loading branch information
timzaak authored Nov 13, 2023
1 parent 73254b8 commit efba4b3
Show file tree
Hide file tree
Showing 3 changed files with 2,267 additions and 1 deletion.
35 changes: 35 additions & 0 deletions .github/workflows/docker_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: docker build and
on:
workflow_dispatch:
inputs:
version:
required: true
description: "docker version to release"

jobs:
docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Login to GithubPackages
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: build and push docker image
uses: docker/build-push-action@v2
with:
context: .
platforms: linux/amd64
push: true
file: Dockerfile
cache-from: type=gha
cache-to: type=gha,mode=max
tags: quasipaa/turn-server:${{github.event.inputs.version}}, quasipaa/turn-server:latest
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
.vs
.vscode
*dist*
Cargo.lock
.idea
*node_modules*
*pcapng*
*package-lock.json*
Expand Down
Loading

0 comments on commit efba4b3

Please sign in to comment.