1 # Build & publish docker images
12 runs-on: ubuntu-latest
16 uses: actions/checkout@v3
19 uses: docker/setup-qemu-action@v2
21 name: Set up Docker Buildx
23 uses: docker/setup-buildx-action@v2
25 name: Login to Docker Hub
26 uses: docker/login-action@v2
28 username: ${{ secrets.DOCKERHUB_USERNAME }}
29 password: ${{ secrets.DOCKERHUB_TOKEN }}
33 if [[ ${{ github.ref_type }} == "tag" ]]; then
34 echo "IMAGE_TAG=${{ github.ref_name }}" >> $GITHUB_ENV
36 echo "IMAGE_TAG=latest" >> $GITHUB_ENV
40 uses: docker/build-push-action@v3
43 tags: b4bz/homer:${{env.IMAGE_TAG}}
44 platforms: linux/amd64,linux/arm/v7,linux/arm64