Skip to content

Commit 9d966d7

Browse files
committed
🚀 (on_release.yml): descomenta e ativa a etapa de deploy no workflow do GitHub
🔧 (on_release.yml): atualiza a URL do webhook para a nova URL do Portainer ✨ (Dockerfile): adiciona sudo, vim, curl e wget ao Dockerfile para melhorar a experiência de desenvolvimento
1 parent acb28a1 commit 9d966d7

2 files changed

Lines changed: 19 additions & 14 deletions

File tree

‎.github/workflows/on_release.yml‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@ jobs:
3232
push: true
3333
tags: ${{ steps.meta.outputs.tags }}
3434
labels: ${{ steps.meta.outputs.labels }}
35-
# deploy:
36-
# name: Deploy
37-
# runs-on: ubuntu-latest
38-
# needs:
39-
# - build_docker
40-
# steps:
41-
# - name: Checkout
42-
# uses: actions/checkout@v4
43-
# with:
44-
# fetch-depth: 1
45-
# - name: Curl -XPOST URL
46-
# run: curl -XPOST https://api.redbeard.dev/webhooks/deploy
35+
deploy:
36+
name: Deploy
37+
runs-on: ubuntu-latest
38+
needs:
39+
- build_docker
40+
steps:
41+
- name: Checkout
42+
uses: actions/checkout@v4
43+
with:
44+
fetch-depth: 1
45+
- name: Curl -XPOST URL
46+
run: curl -XPOST https://portainer.makecodes.dev/api/webhooks/c9edd686-4c24-434f-9670-92e51ac5b801

‎Dockerfile‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,13 @@ FROM ubuntu:latest AS runner
33

44
# Install SSH Server
55
RUN apt-get update && \
6-
apt-get install -y openssh-server && \
7-
rm -rf /var/lib/apt/lists/*
6+
apt-get install -y \
7+
openssh-server \
8+
sudo \
9+
vim \
10+
curl \
11+
wget \
12+
&& rm -rf /var/lib/apt/lists/*
813

914
# Create a user (e.g., 'dev') and set the password
1015
RUN useradd -rm -d /home/dev -s /bin/bash -g root -G sudo -u 1001 dev

0 commit comments

Comments
 (0)