Skip to content

Merge pull request #11 from sousa-miguel/cd-pipeline #2

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

Merge pull request #11 from sousa-miguel/cd-pipeline #2

Workflow file for this run

name: CD Pipeline
on:
push:
branches:
- 'main'
jobs:
publish-docker-file:
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' }}
- 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 }}