mirror of
https://codeberg.org/spire/docker-tf2-server.git
synced 2026-08-02 04:04:45 +02:00
29 lines
714 B
YAML
29 lines
714 B
YAML
name: docker-build
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- "main"
|
|
- "master"
|
|
repository_dispatch:
|
|
types: [build]
|
|
|
|
jobs:
|
|
docker:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Login to DockerHub
|
|
uses: https://github.com/docker/login-action@v3
|
|
with:
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
- name: Build and push
|
|
id: docker_build
|
|
uses: https://github.com/docker/build-push-action@v7
|
|
with:
|
|
push: true
|
|
load: true
|
|
no-cache: true
|
|
tags: spiretf/docker-tf2-server:latest
|
|
- name: Image digest
|
|
run: echo ${{ steps.docker_build.outputs.digest }}
|