Build and upload CSI driver container image #34
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and upload CSI driver container image | |
on: | |
workflow_dispatch: | |
inputs: | |
versionTag: | |
description: "Version tag of the image" | |
default: "" | |
type: string | |
required: false | |
jobs: | |
build-csi-driver: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b | |
- name: Setup Buildx | |
uses: docker/setup-buildx-action@f211e3e9ded2d9377c8cadc4489a4e38014bc4c9 | |
- name: Install Go | |
uses: actions/setup-go@84cbf8094393cdc5fe1fe1671ff2647332956b1a | |
with: | |
go-version: "1.20" | |
- name: Build container image | |
run: | | |
make image | |
- name: Log in to the Container registry | |
id: docker-login | |
uses: docker/login-action@dd4fa0671be5250ee6f50aedf4cb05514abda2c7 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Push container image | |
run: | | |
docker push ghcr.io/edgelesssys/constellation/aws-csi-driver:${{ inputs.versionTag }} |