Skip to content
This repository has been archived by the owner on May 18, 2024. It is now read-only.

Dockerfile: build with Go 1.21.0 #336

Dockerfile: build with Go 1.21.0

Dockerfile: build with Go 1.21.0 #336

Workflow file for this run

name: docker-push
on:
push:
branches:
- main
tags:
- "*"
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: docker meta
id: meta
uses: docker/[email protected]
with:
images: fsouza/s3-upload-proxy
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
- name: setup qemu
uses: docker/[email protected]
- name: setup buildx
id: buildx
uses: docker/[email protected]
- name: login to docker hub
uses: docker/[email protected]
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: build and push
uses: docker/[email protected]
with:
cache-from: fsouzaci/gha-cache:s3-upload-proxy
cache-to: fsouzaci/gha-cache:s3-upload-proxy
context: .
push: ${{ github.ref_type == 'tag' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64,linux/arm64