Skip to content

Commit

Permalink
add action
Browse files Browse the repository at this point in the history
  • Loading branch information
matassp committed Nov 8, 2019
1 parent dbe5168 commit 4b29816
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Publish Release

on:
release:
types: [published]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: Define vars
run: |
echo ${{ github.ref }} | cut -d '/' -f 3 > DOCKER_TAG
- name: Build and push docker image
run: |
docker build --tag mat2s/cloud-lab:$(cat DOCKER_TAG) .
docker login --username ${{ secrets.DOCKER_USER }} --password ${{ secrets.DOCKER_TOKEN }}
docker push mat2s/cloud-lab:$(cat DOCKER_TAG)

0 comments on commit 4b29816

Please sign in to comment.