Try to get build working again #35
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 build | |
on: | |
push: | |
branches: | |
- devel | |
- main | |
tags: | |
- 'v*.*.*' | |
jobs: | |
publish: | |
name: Publish container images | |
runs-on: ubuntu-latest | |
steps: | |
- name: Retrieve code | |
uses: actions/checkout@v2 | |
- name: Set Github variables | |
id: vars | |
run: ./github-vars | |
- name: Login to DockerHub | |
uses: docker/login-action@v1 | |
with: | |
username: neale | |
password: ${{ secrets.DOCKER_TOKEN }} | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v1 | |
# Currently required, because buildx doesn't support auto-push from docker | |
- name: Set up builder | |
uses: docker/setup-buildx-action@v1 | |
id: buildx | |
- name: Build and push moth-devel image | |
uses: docker/build-push-action@v2 | |
with: | |
builder: ${{ steps.buildx.outputs.name }} | |
target: devel-server | |
file: contrib/python/Containerfile | |
push: true | |
context: contrib/python/ | |
platforms: linux/amd64 | |
tags: | | |
dirtbags/moth-devel:${{ steps.vars.outputs.tag }} |