Skip to content

Remove secrets workflow #1

Remove secrets workflow

Remove secrets workflow #1

name: "Docker: Build & Push"
on:
push:
branches: [ main ]
jobs:
build_and_push:
permissions:
packages: write
contents: read
runs-on: ubuntu-latest
steps:
- name: Checkout the repo
uses: actions/checkout@v2
- name: Log in to registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin
- name: Build image
run: docker compose -f docker-compose.prod.yml build
- name: Push image to Github Registry
run: docker compose -f docker-compose.prod.yml push