Skip to content

Commit d51115d

Browse files
committed
added docker image publication
1 parent fedb3e7 commit d51115d

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Publish XcmsViewer Docker Image
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build-and-push:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v2
15+
16+
- name: Set up Docker Buildx
17+
uses: docker/setup-buildx-action@v1
18+
19+
- name: Log in to Docker Hub
20+
run: docker login -u ${{ secrets.DOCKERHUB_USERNAME }} -p ${{ secrets.DOCKERHUB_TOKEN }}
21+
22+
- name: Build and push Docker image
23+
run: |
24+
docker buildx create --use
25+
docker buildx build --platform linux/amd64,linux/arm64 -t p2m2/docker-XcmsViewer:latest .
26+
docker push p2m2/docker-XcmsViewer:latest

0 commit comments

Comments
 (0)