All checks were successful
Publish Metadata Agent Image (dev) / build-and-push-image (push) Successful in 1m8s
Publish Web Player Image (dev) / build-and-push-image (push) Successful in 1m9s
Publish Metadata Agent Image / build-and-push-image (push) Successful in 1m7s
Publish Web Player Image / build-and-push-image (push) Successful in 1m10s
Publish Server Image / build-and-push-image (push) Successful in 2m23s
51 lines
1.3 KiB
YAML
51 lines
1.3 KiB
YAML
name: Publish Metadata Agent Image (dev)
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- DEV
|
|
|
|
env:
|
|
REGISTRY: docker.io
|
|
IMAGE_NAME: ${{ secrets.DOCKERHUB_USERNAME }}/furumi-metadata-agent
|
|
|
|
jobs:
|
|
build-and-push-image:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
packages: write
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
|
|
- name: Log in to Docker Hub
|
|
uses: docker/login-action@v3
|
|
with:
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
|
|
- name: Determine version and tags
|
|
id: info
|
|
run: |
|
|
IMAGE="${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}"
|
|
SHORT_SHA="$(echo '${{ github.sha }}' | cut -c1-7)"
|
|
echo "tags=${IMAGE}:dev" >> "$GITHUB_OUTPUT"
|
|
echo "version=dev-${SHORT_SHA}" >> "$GITHUB_OUTPUT"
|
|
|
|
- name: Build and push Docker image
|
|
uses: docker/build-push-action@v5
|
|
with:
|
|
context: .
|
|
file: Dockerfile.agent
|
|
push: true
|
|
tags: ${{ steps.info.outputs.tags }}
|
|
build-args: |
|
|
FURUMI_VERSION=${{ steps.info.outputs.version }}
|
|
cache-from: type=gha
|
|
cache-to: type=gha,mode=max
|