Skip to content

Build and push the Docker image #15

Build and push the Docker image

Build and push the Docker image #15

Workflow file for this run

name: Build and push the Docker image
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
workflow_dispatch:
permissions:
contents: read
packages: write
jobs:
build_docker_image:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Log in to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push the Docker image
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: ghcr.io/pixelweatherproject/pwmp-server:latest