Skip to content

fix: Update Docker image tags to use static repository names #14

fix: Update Docker image tags to use static repository names

fix: Update Docker image tags to use static repository names #14

name: Docker Publish
on:
push:
branches:
- main
jobs:
build_and_publish:
name: Build and Publish Docker Images
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Log in to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push app
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: ghcr.io/tracktor:latest
- name: Build and push docs
uses: docker/build-push-action@v4
with:
context: .
file: Dockerfile.docs
push: true
tags: ghcr.io/tracktor-docs:latest