Skip to content

Commit 90c0a7a

Browse files
committed
fix: add ci file for release of container
1 parent 32eed0d commit 90c0a7a

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Build and publish containers
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
semver:
7+
description: 'SEMVER to set on the release'
8+
required: true
9+
type: string
10+
11+
permissions:
12+
contents: write
13+
packages: write
14+
15+
jobs:
16+
build-ci-image:
17+
runs-on: ubuntu-latest
18+
env:
19+
SEMVER: ${{ inputs.semver }}
20+
steps:
21+
- name: Check out repository
22+
uses: actions/checkout@v3
23+
24+
- name: Log in to GitHub Container Registry
25+
uses: docker/login-action@v2
26+
with:
27+
registry: ghcr.io
28+
# GITHUB_TOKEN is automatically provided in GitHub Actions
29+
username: ${{ github.actor }}
30+
password: ${{ secrets.GITHUB_TOKEN }}
31+
32+
- name: Set up QEMU (for multi-arch builds, optional)
33+
uses: docker/setup-qemu-action@v3
34+
35+
- name: Set up Docker Buildx
36+
uses: docker/setup-buildx-action@v3
37+
38+
- name: Build and push Docker image
39+
uses: docker/build-push-action@v6
40+
with:
41+
context: .
42+
push: true
43+
tags: |
44+
ghcr.io/ensono/aws-cli-auth-ci:${{ inputs.semver }}
45+
platforms: linux/amd64,linux/arm64 # adjust as needed

0 commit comments

Comments
 (0)