Skip to content

General refresh

General refresh #8

Workflow file for this run

name: Build and push echo-fs docker image
on:
workflow_dispatch:
pull_request:
branches:
- master
jobs:
build-push:
runs-on: ubuntu-latest
steps:
- name: Check out code
id: checkout
uses: actions/checkout@v5
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3
- name: Docker metadata
id: docker-meta
uses: docker/metadata-action@v3
with:
images: ghcr.io/dlcs/echo-fs
tags: |
type=ref,event=branch
type=ref,event=pr
type=sha,enable=true,prefix=,format=long
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v6
with:
builder: ${{ steps.buildx.outputs.name }}
tags: ${{ steps.docker-meta.outputs.tags }}
labels: ${{ steps.docker-meta.outputs.labels }}