Skip to content

Commit

Permalink
fix: Release workflow change (#239)
Browse files Browse the repository at this point in the history
  • Loading branch information
pigri authored Nov 6, 2024
2 parents 5c807b6 + 7c63668 commit c06dc2c
Showing 1 changed file with 4 additions and 40 deletions.
44 changes: 4 additions & 40 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- 'v*'

jobs:
core-release-amd64:
core-release:
runs-on: ubicloud-standard-2
steps:
- name: Login to Github Packages
Expand Down Expand Up @@ -38,7 +38,7 @@ jobs:
uses: docker/build-push-action@v6
with:
context: .
platforms: linux/amd64
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.openshield.outputs.tags }}
labels: ${{ steps.openshield.outputs.labels }}
Expand Down Expand Up @@ -75,7 +75,7 @@ jobs:
uses: docker/build-push-action@v6
with:
context: services/rule
platforms: linux/amd64
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.rule.outputs.tags }}
labels: ${{ steps.rule.outputs.labels }}
Expand Down Expand Up @@ -112,44 +112,8 @@ jobs:
uses: docker/build-push-action@v6
with:
context: services/cache
platforms: linux/amd64
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.cache.outputs.tags }}
labels: ${{ steps.cache.outputs.labels }}

cache-release-arm64:
runs-on: ubicloud-standard-2-arm
steps:
- name: Login to Github Packages
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: 🏗 Setup repo
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
version: latest

- name: Docker meta
id: cache
uses: docker/metadata-action@v5
with:
images: |
ghcr.io/openshieldai/openshield/cache
tags: |
type=sha
type=raw,value=latest
- name: Build arm64
uses: docker/build-push-action@v6
with:
context: services/cache
platforms: linux/arm64
push: true
tags: ${{ steps.cache.outputs.tags }}
labels: ${{ steps.cache.outputs.labels }}

0 comments on commit c06dc2c

Please sign in to comment.