Skip to content

Commit

Permalink
[dotbox] Add GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mikybars committed Mar 5, 2020
1 parent bcf5514 commit 9327089
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/dotbox.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: dotbox

on:
release:
types: [created]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Build the Docker image
run: docker build -t dotbox dotbox

- name: Get release version
run: echo ::set-env name=RELEASE_VERSION::${GITHUB_REF:10}

- name: Publish to the Docker Hub
run: |
docker login --username "${{ github.actor }}" --password "${{ secrets.DOCKER_HUB_TOKEN }}"
docker tag dotbox "${{ github.actor }}/dotbox:${{ env.RELEASE_VERSION }}"
docker push "${{ github.actor }}/dotbox:${{ env.RELEASE_VERSION }}"

0 comments on commit 9327089

Please sign in to comment.