Skip to content

Commit

Permalink
CI: Add workflow to publish Docker images
Browse files Browse the repository at this point in the history
  • Loading branch information
dbaston committed May 7, 2024
1 parent bcd7699 commit 2fdb5b5
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Publish Docker image

on:
push:
workflow_dispatch:

jobs:
publish_image:
name: Publish Docker image
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
attestations: write
steps:
- uses: actions/checkout@v4
- uses: docker/metadata-action@v5
id: meta
with:
images: isciences/exactextract
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and Push
uses: docker/build-push-action@v5
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.id.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit 2fdb5b5

Please sign in to comment.