Skip to content

Merge pull request #9 from sousa-miguel/cd-pipeline #1

Merge pull request #9 from sousa-miguel/cd-pipeline

Merge pull request #9 from sousa-miguel/cd-pipeline #1

Workflow file for this run

name: CD Pipeline
on:
push:
branches:
- 'main'
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ github.repository }}
flavor: |
latest=${{ github.ref == 'refs/heads/main' }}
sha
- name: Login to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: DISCORD_TOKEN=${{ secrets.DISCORD_TOKEN }}