1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- name: ci
- on:
- workflow_dispatch:
- inputs:
- logLevel:
- description: 'Log level'
- required: true
- default: 'warning'
- release:
- types: [published]
- jobs:
- docker:
- runs-on: ubuntu-latest
- steps:
- -
- name: Checkout repo
- uses: actions/checkout@v2
- -
- name: Set up QEMU
- uses: docker/setup-qemu-action@v1
- -
- name: Set up Docker Buildx
- uses: docker/setup-buildx-action@v1
- -
- name: Login to DockerHub
- uses: docker/login-action@v1
- with:
- username: mantissoftware
- password: ${{ secrets.DOCKER_REPO }}
- - name: Extract metadata (tags, labels) for Docker
- id: meta
- uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
- with:
- images: |
- mantissoftware/python36-runner
- -
- name: Build and push
- id: docker_build
- uses: docker/build-push-action@v2
- with:
- push: true
- tags: ${{ steps.meta.outputs.tags }}
- labels: ${{ steps.meta.outputs.labels }}
- -
- name: Image digest
- run: echo ${{ steps.docker_build.outputs.digest }}
- -
- name: Push Readme to Docker Hub
- uses: peter-evans/dockerhub-description@v2
- with:
- username: mantissoftware
- password: ${{ secrets.DOCKERHUB_PASS }}
- repository: mantissoftware/python36-runner
|