Skip to content

Commit

Permalink
fix: revert to old dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
vanlooverenkoen committed Nov 26, 2023
1 parent 0ea7204 commit 138861c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 29 deletions.
28 changes: 5 additions & 23 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,36 +1,18 @@
# Use a Debian image as the base
FROM debian:buster

FROM node:slim
LABEL "com.github.actions.name"="Dart Conventional Release"
LABEL "com.github.actions.description"="Automating version bump for conventional dart releases"
LABEL "com.github.actions.icon"="upload-cloud"
LABEL "com.github.actions.color"="blue"

# Install curl, gnupg, and other necessary utilities
RUN apt-get update && apt-get install -y curl gnupg software-properties-common git

# Add Dart stable repository
RUN sh -c 'curl https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -'
RUN sh -c 'curl https://storage.googleapis.com/download.dartlang.org/linux/debian/dart_stable.list > /etc/apt/sources.list.d/dart_stable.list'

# Install Dart
RUN apt-get update && apt-get install -y dart

# Install Node.js and npm
RUN curl -fsSL https://deb.nodesource.com/setup_14.x | bash -
RUN apt-get install -y nodejs

# Confirm installations
RUN dart --version
RUN node --version
RUN npm --version
RUN git --version

# Copy the package.json and package-lock.json
COPY package*.json ./
RUN npm install -g npm@latest
RUN npm install

# Install dependencies
RUN apt-get update
RUN apt-get -y install git

# Copy the rest of your action's code
COPY . .

Expand Down
6 changes: 0 additions & 6 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,8 @@ function runInWorkspace(command, args) {
return exec.exec(command, args, { cwd: workspace })
}

async function validateDartProject() {
await runInWorkspace('dart', ['pub', 'publish', '--dry-run'])
}

async function run() {
try {
await validateDartProject()

const pubspec = getPubspec()
const event = github.context.payload

Expand Down

0 comments on commit 138861c

Please sign in to comment.