From ea1e8dd3454e3733ecbbd4ed76f7bb0533af2aa0 Mon Sep 17 00:00:00 2001 From: Vladimir Ermakov Date: Fri, 6 Dec 2024 10:20:31 +0100 Subject: [PATCH] ci: try to build oci images --- .github/workflows/release.yml | 9 +++++++++ ci/release-oci-images.sh | 5 +++++ 2 files changed, 14 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cbf34fd..a29b83e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,3 +1,4 @@ +--- name: goreleaser on: @@ -24,3 +25,11 @@ jobs: args: release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Login to GitHub Container Registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: Release OCI images + run: ./ci/release-oci-images.sh diff --git a/ci/release-oci-images.sh b/ci/release-oci-images.sh index 3ab547f..742c3da 100755 --- a/ci/release-oci-images.sh +++ b/ci/release-oci-images.sh @@ -15,4 +15,9 @@ copybin fleeting-plugin-openstack_linux_amd64_v1 linux/amd64 copybin fleeting-plugin-openstack_linux_arm64_v8.0 linux/arm64 copybin fleeting-plugin-openstack_linux_arm_7 linux/armv7 +tag=${GITHUB_REF#refs/*/} + go install gitlab.com/gitlab-org/fleeting/fleeting-artifact/...@latest + +# fleeting-artifact release ghcr.io/sardinasystems/fleeting-plugin-openstack: +fleeting-artifact release "ghcr.io/$GITHUB_REPOSITORY:$tag"