Skip to content

Update project versions and refactor China deployment logic #137

Update project versions and refactor China deployment logic

Update project versions and refactor China deployment logic #137

Workflow file for this run

name: Docker for API
on:
push:
branches: [ master ]
paths: [ src/API/** ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check Out Repo
uses: actions/checkout@v4
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3
- name: Build and push
id: docker_build
uses: docker/build-push-action@v5
with:
context: ./src
file: ./src/Dockerfile
push: true
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/elf:latest
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}