Skip to content

refactor(coder): rename dockerfiles #5

refactor(coder): rename dockerfiles

refactor(coder): rename dockerfiles #5

name: build-push-coder-nodejs
on:
pull_request:
paths:
- "502-coder/docker/coder/nodejs.Dockerfile"
jobs:
build-and-push:
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: tuana9a
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: 502-coder/docker/coder
file: 502-coder/docker/coder/nodejs.Dockerfile
push: true
tags: tuana9a/coder:nodejs
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Send Telegram message
env:
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
run: |
MESSAGE="OK build tuana9a/coder:nodejs"
curl -s -X POST https://api.telegram.org/bot${TELEGRAM_BOT_TOKEN}/sendMessage -d chat_id=${TELEGRAM_CHAT_ID} -d text="${MESSAGE}"