Skip to content

Add environment to gh workflow #2

Add environment to gh workflow

Add environment to gh workflow #2

name: Push docker image to Docker Hub
on:
push:
workflow_dispatch:
jobs:
docker:
runs-on: ubuntu-latest
environment: prod
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Build and push Docker image
run: make docker-nmdc