Skip to content

Commit 5411e9f

Browse files
committed
Added release CI
1 parent 1861ca6 commit 5411e9f

File tree

3 files changed

+50
-1
lines changed

3 files changed

+50
-1
lines changed

.github/workflows/release.yaml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: "Release"
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*.*.*"
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v5
13+
14+
- name: Set up QEMU
15+
uses: docker/setup-qemu-action@v3
16+
17+
- name: Set up Docker Buildx
18+
id: buildx
19+
uses: docker/setup-buildx-action@v3
20+
21+
- name: Login to the Container registry
22+
uses: docker/login-action@v3
23+
with:
24+
registry: ghcr.io
25+
username: ${{ github.actor }}
26+
password: ${{ secrets.GITHUB_TOKEN }}
27+
28+
- name: Docker meta
29+
id: meta
30+
uses: docker/metadata-action@v5
31+
with:
32+
images: ghcr.io/${{ github.repository_owner }}/aws_ecr_proxy
33+
labels: |
34+
org.opencontainers.image.authors=Terri Cain
35+
org.opencontainers.image.title=ECR Proxy
36+
org.opencontainers.image.description=Proxies requests to AWS ECR with credentials and fixes Link headers
37+
tags: |
38+
type=semver,pattern={{version}}
39+
40+
- name: Build and push
41+
uses: docker/build-push-action@v6
42+
with:
43+
context: .
44+
platforms: linux/amd64,linux/arm64
45+
push: true
46+
tags: ${{ steps.meta.outputs.tags }}
47+
labels: ${{ steps.meta.outputs.labels }}
48+
build-args: |
49+
DOCKER_METADATA_OUTPUT_JSON

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ COPY go.mod go.sum /usr/local/go/src/aws_ecr_proxy/
77
RUN go mod download
88

99
COPY cmd/ /usr/local/go/src/aws_ecr_proxy/cmd/
10-
COPY pkg/ /usr/local/go/src/aws_ecr_proxy/internal/
10+
COPY internal/ /usr/local/go/src/aws_ecr_proxy/internal/
1111

1212
ENV PKG=github.com/terricain/aws_ecr_proxy
1313
ARG DOCKER_METADATA_OUTPUT_JSON

0 commit comments

Comments
 (0)