Skip to content

Commit

Permalink
added docker image publication
Browse files Browse the repository at this point in the history
  • Loading branch information
glaisney committed Feb 15, 2024
1 parent fedb3e7 commit d51115d
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Publish XcmsViewer Docker Image

on:
push:
branches:
- main

jobs:
build-and-push:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Log in to Docker Hub
run: docker login -u ${{ secrets.DOCKERHUB_USERNAME }} -p ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push Docker image
run: |
docker buildx create --use
docker buildx build --platform linux/amd64,linux/arm64 -t p2m2/docker-XcmsViewer:latest .
docker push p2m2/docker-XcmsViewer:latest

0 comments on commit d51115d

Please sign in to comment.