Skip to content

Push images to Docker Hub #7

Push images to Docker Hub

Push images to Docker Hub #7

Workflow file for this run

name: "Push images to Docker Hub"
on: workflow_dispatch
jobs:
build:
name: "Build and push images"
runs-on: "ubuntu-24.04"
steps:
- name: "Check out repository"
uses: "actions/checkout@v4"
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: |
hakamine/archivematica-storage-service
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=sha
- name: "Set up buildx"
uses: "docker/setup-buildx-action@v3"
- name: "Log in to Docker Hub"
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
- name: "Build and push Storage Service"
uses: docker/build-push-action@v6
with:
context: .
push: true
file: ./Dockerfile
target: "archivematica-storage-service"
tags: ${{ steps.meta.outputs.tags }}