Skip to content

feat: update site showcase and docker-compose examples (#78) #30

feat: update site showcase and docker-compose examples (#78)

feat: update site showcase and docker-compose examples (#78) #30

name: Build Docker image and push it
on:
push:
branches:
- 'master'
env:
REGISTRY: ghcr.io
IMAGE_NAME: "tf2pickup-org/${{ github.event.repository.name }}"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker meta
id: docker_meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:1.0.1
labels: ${{ steps.docker_meta.outputs.labels }}