Merge pull request #629 from h0tw1r3/debian12 #87
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: Docker test and publish | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build-and-publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: Set up Ruby 2.6 | |
uses: actions/setup-ruby@v1 | |
with: | |
ruby-version: 2.6.x | |
- run: gem install bundler | |
- name: Build container | |
env: | |
IS_LATEST: true | |
working-directory: docker | |
run: make lint build test | |
- name: Publish container | |
env: | |
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} | |
DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }} | |
IS_LATEST: true | |
working-directory: docker | |
run: | | |
docker login -u "$DOCKERHUB_USERNAME" -p "$DOCKERHUB_PASSWORD" | |
make publish |