deps(go): Bump github.com/lmittmann/tint from 1.0.5 to 1.0.6 (#2285) #61
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 Main Build | |
on: | |
push: | |
branches: [ main ] | |
jobs: | |
docker-main-build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up QEMU | |
uses: docker/[email protected] | |
- name: Set up Docker Buildx | |
id: buildx | |
uses: docker/[email protected] | |
with: | |
version: v0.14.1 | |
driver-opts: | | |
image=moby/buildkit:buildx-stable-1 | |
network=host | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Login to GHCR | |
uses: docker/[email protected] | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Login to DockerHub | |
uses: docker/[email protected] | |
with: | |
# NOTE: DOCKERHUB_TOKEN and DOCKERHUB_USERNAME must be present in https://github.com/hairyhenderson/gomplate/settings | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Build & Push (latest tag) | |
run: | | |
export srcrepo=${{ github.repository}} | |
make docker-multi COMMIT=${{ github.sha }} DOCKER_REPO=${srcrepo} BUILDX_ACTION=--push | |
docker buildx imagetools create -t gomplate/gomplate:latest ${srcrepo}:latest | |
docker buildx imagetools create -t gomplate/gomplate:alpine ${srcrepo}:alpine | |
docker buildx imagetools create -t ghcr.io/${srcrepo}:latest ${srcrepo}:latest | |
docker buildx imagetools create -t ghcr.io/${srcrepo}:alpine ${srcrepo}:alpine |