]> git.madduck.net Git - etc/vim.git/blob - .github/workflows/docker.yml

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Add lower bound for aiohttp-cors + fix primer (#2231)
[etc/vim.git] / .github / workflows / docker.yml
1 name: docker
2
3 on:
4   push:
5     branches:
6       - "main"
7   release:
8     types: created
9
10 jobs:
11   docker:
12     runs-on: ubuntu-latest
13     steps:
14       - name: Checkout
15         uses: actions/checkout@v2
16
17       - name: Set up QEMU
18         uses: docker/setup-qemu-action@v1
19
20       - name: Set up Docker Buildx
21         uses: docker/setup-buildx-action@v1
22
23       - name: Login to DockerHub
24         uses: docker/login-action@v1
25         with:
26           username: ${{ secrets.DOCKERHUB_USERNAME }}
27           password: ${{ secrets.DOCKERHUB_TOKEN }}
28
29       - name: Check + set version tag
30         run:
31           echo "GIT_TAG=$(git describe --candidates=0 --tags 2> /dev/null || echo
32           latest_non_release)" >> $GITHUB_ENV
33
34       - name: Build and push
35         uses: docker/build-push-action@v2
36         with:
37           context: .
38           platforms: linux/amd64,linux/arm64
39           push: true
40           tags: pyfound/black:latest,pyfound/black:${{ env.GIT_TAG }}
41
42       - name: Image digest
43         run: echo ${{ steps.docker_build.outputs.digest }}