2020-07-16 17:30:05 +00:00
|
|
|
name: Build latest tag docker image
|
2020-07-16 15:31:13 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Build the Docker image
|
2020-07-21 14:32:11 +00:00
|
|
|
run: docker build --tag butterrobot:$(git rev-parse --short HEAD) -f Dockerfile.dev .
|
2020-07-16 15:31:13 +00:00
|
|
|
|
2020-07-16 17:30:05 +00:00
|
|
|
- name: Push into Github packages (latest)
|
2020-07-16 15:31:13 +00:00
|
|
|
run: |
|
|
|
|
echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u fmartingr --password-stdin
|
2020-07-21 14:32:11 +00:00
|
|
|
docker tag butterrobot:$(git rev-parse --short HEAD) docker.pkg.github.com/fmartingr/butterrobot/butterrobot:latest
|
|
|
|
docker push docker.pkg.github.com/fmartingr/butterrobot/butterrobot:latest
|