Skip to content

Fix dockerfile image tag #2

Fix dockerfile image tag

Fix dockerfile image tag #2

Workflow file for this run

name: Go
on:
push:
branches:
- '*'
jobs:
test:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-go@v5
with:
go-version: '1.24'
- name: golangci-lint
uses: golangci/golangci-lint-action@v8
with:
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
version: v2.1
args: --timeout=10m
- name: Setup gotestsum
uses: autero1/[email protected]
with:
gotestsum_version: 0.4.1
- name: Interact with gotestsum
run: gotestsum --format short-verbose
build:
name: Build
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3
- name: Login to the Container registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/${{ github.repository_owner }}/aws_ecr_proxy
labels: |
org.opencontainers.image.authors=Terri Cain
org.opencontainers.image.title=ECR Proxy
org.opencontainers.image.description=Proxies requests to AWS ECR with credentials and fixes Link headers
tags: |
type=raw,value=test
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
DOCKER_METADATA_OUTPUT_JSON