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