Skip to content

publish

publish #16

Workflow file for this run

name: publish
on:
push:
branches:
- main
schedule:
- cron: "0 13 * * 1" # Every Monday
jobs:
publish:
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
- name: Build
uses: docker/build-push-action@v6
with:
push: true
tags: |
ghcr.io/otter-sec/rctf-admin-bot:${{ github.sha }}
ghcr.io/otter-sec/rctf-admin-bot:${{ github.ref_name }}