diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml new file mode 100644 index 0000000..855a4d6 --- /dev/null +++ b/.github/workflows/docker.yml @@ -0,0 +1,18 @@ +name: Build and Push Docker + +on: + push: + branches: [ master ] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Build the Docker image + run: | + VERSION=$(git describe --always --long --dirty --tags) + docker login docker.pkg.github.com -p ${{ secrets.GITHUB_TOKEN }} + docker build . --tag rove:$VERSION --tag rove:latest + docker push docker.pkg.github.com/mdiluz/rove/rove:$VERSION + docker push docker.pkg.github.com/mdiluz/rove/rove:latest