Skip to content

Commit

Permalink
Release latest Docker image every dev release (#3747)
Browse files Browse the repository at this point in the history
  • Loading branch information
bblommers committed Aug 28, 2021
1 parent 1a42b33 commit b43dc77
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,19 @@ jobs:
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_API_TOKEN }}
- name: Build Docker release
run: |
docker build -t motoserver/moto . --tag moto:latest
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v2
with:
push: true
tags: motoserver/moto:latest
- name: Get version number
run: |
version=$(grep -oP '(?<=__version__ = ")[0-9.a-z]+(?=")' moto/__init__.py)
Expand Down

0 comments on commit b43dc77

Please sign in to comment.