Skip to content

Commit

Permalink
fix: github actions permissions
Browse files Browse the repository at this point in the history
Signed-off-by: Dusan Malusev <[email protected]>
  • Loading branch information
CodeLieutenant committed Jul 18, 2024
1 parent dd5c124 commit e51966d
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: "Build Cassandra-Stress"

permissions:
contents: write

on:
workflow_dispatch:
inputs:
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,9 @@ on:
required: false
type: string
platforms:
default: linux/amd64
default: linux/amd64,linux/arm64
required: false
type: string
dev:
default: false
required: false
type: boolean
image:
default: 'scylladb/cassandra-stress'
required: false
Expand Down Expand Up @@ -82,3 +78,5 @@ jobs:
tags: |
${{ inputs.image }}:latest
${{ inputs.image }}:${{ inputs.version }}
build-args: |
CASSANDRA_STRESS_VERSION=${{ inputs.version }}
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: "Release"

permissions:
contents: write

on:
push:
tags:
Expand Down
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
FROM amazoncorretto:11-alpine AS build

ARG CASSANDRA_STRESS_VERSION

WORKDIR /app

COPY . .
Expand All @@ -9,11 +11,10 @@ RUN apk update \
&& apk add apache-ant bash \
&& ant realclean \
&& mkdir -p build lib \
&& ant -Drelease=true artifacts \
&& ant -Drelease=true -Dversion="$CASSANDRA_STRESS_VERSION" artifacts \
&& bash ./SCYLLA-VERSION-GEN \
&& cp build/SCYLLA-* build/dist/


FROM amazoncorretto:11-alpine AS production

ENV SCYLLA_HOME=/scylla-tools-java
Expand Down

0 comments on commit e51966d

Please sign in to comment.