Skip to content

Commit

Permalink
ci: try to build oci images
Browse files Browse the repository at this point in the history
  • Loading branch information
vooon committed Dec 6, 2024
1 parent 08f57d0 commit ea1e8dd
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name: goreleaser

on:
Expand All @@ -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
5 changes: 5 additions & 0 deletions ci/release-oci-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit ea1e8dd

Please sign in to comment.