Merge pull request #667 from oetiker/v0.23.2 #104
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
push: | |
branches: | |
- master | |
tags: | |
- "*" | |
jobs: | |
docker: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Login to image registry | |
run: docker login -u ${{ secrets.DOCKER_HUB_USERNAME }} -p ${{ secrets.DOCKER_HUB_PASSWORD }} | |
- name: Build runtime image | |
run: docker build --target runtime -t ${{ github.repository }}:${GITHUB_REF##*/} . | |
- name: Run test within image | |
run: docker build --target test . | |
- name: Push runtime image | |
run: docker push ${{ github.repository }}:${GITHUB_REF##*/} |