Skip to content

Merge branch 'main' of https://github.com/bagriel01/RustBot #1

Merge branch 'main' of https://github.com/bagriel01/RustBot

Merge branch 'main' of https://github.com/bagriel01/RustBot #1

Workflow file for this run

name: Build e Push para GHCR
on:
push:
branches:
- main
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write # necessário para publicar no GHCR
steps:
- name: Checkout do código
uses: actions/checkout@v4
- name: Login no GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build e Push da imagem
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: |
ghcr.io/bagriel01/rustbot:latest
ghcr.io/bagriel01/rustbot:${{ github.sha }}