Skip to content

Docker xcmsrocker

Docker xcmsrocker #204

Workflow file for this run

name: Docker xcmsrocker
on:
push:
branches: [ master ]
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
docker:
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- name: Check Out Repo
uses: actions/checkout@v3
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
- name: Log in to the Container registry
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
context: ./CBverse_xcms
push: true
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/xcms:latest
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: ./verse_xcms
push: true
tags: |
${{ secrets.DOCKER_HUB_USERNAME }}/xcmsrocker:latest
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
- name: Build and push
id: docker_build3
uses: docker/build-push-action@v4
with:
context: ./metaborocker
push: true
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/metaborocker:latest