Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GHA workflow to push docker images to registry #697

Open
wants to merge 2 commits into
base: qa/0.x
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/push-images.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: "Push images to Docker Hub"
on: workflow_dispatch
jobs:
build:
name: "Builds images and push them to Docker Hub"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
name: "Builds images and push them to Docker Hub"
name: "Build and push images"

runs-on: "ubuntu-22.04"
steps:
- name: "Check out repository"
uses: "actions/checkout@v4"
- name: "Set up buildx"
uses: "docker/setup-buildx-action@v3"
- name: "Login to Docker Hub"
uses: docker/login-action@v3
with:
username: artefactual
password: ${{ secrets.DOCKER_HUB_TOKEN }}
- name: "Build and Push Storage Service"
uses: docker/build-push-action@v5
with:
context: .
push: true
load: true
file: ./Dockerfile
target: "archivematica-storage-service"
tags: artefactual/archivematica-storage-service:latest