Skip to content

Commit

Permalink
add ci yml
Browse files Browse the repository at this point in the history
  • Loading branch information
chuvirtonomy committed Jun 22, 2021
1 parent 375cf4f commit f988953
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: CI

# Controls when the action will run.
on: pull_request

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
docker:
runs-on: ubuntu-20.04
steps:

- name: Check Out Repo
uses: actions/checkout@v2

- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1

- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
context: ./
file: ./Dockerfile
push: false
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/sphinxsys:production

- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}

0 comments on commit f988953

Please sign in to comment.