Update workflows #65
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and publish docker image | |
on: | |
push: | |
branches: [main] | |
jobs: | |
push_to_registry: | |
name: Push Docker image to GitHub Packages | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v4 | |
- name: Docker Build & Push Action | |
uses: mr-smithers-excellent/docker-build-push@v6 | |
with: | |
# Name of the Docker image | |
image: cube-bot | |
# Target Docker registry | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
# Docker registry password | |
password: ${{ secrets.GHCR_TOKEN }} | |
# Adds latest tag to auto-generated GitOps tag | |
addLatest: true |