Skip to content

Merge pull request #30 from LeidenUniversityLibrary/enable-smtp #7

Merge pull request #30 from LeidenUniversityLibrary/enable-smtp

Merge pull request #30 from LeidenUniversityLibrary/enable-smtp #7

Workflow file for this run

name: Build and Push Docker Image
on:
release:
types: [published]
push:
tags:
- '*'
branches:
- 'actions*'
- 'main'
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: all
- 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.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PAT }}
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: .
file: Containerfile
push: true
tags: |
${{ secrets.CONTAINER_REPO }}:latest
${{ secrets.CONTAINER_REPO }}:${{ github.ref_name }}
- name: Log out from Docker Hub
run: docker logout