Skip to content

Commit

Permalink
Update docker-image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
faberf authored May 15, 2024
1 parent 2212848 commit dac1ae6
Showing 1 changed file with 27 additions and 20 deletions.
47 changes: 27 additions & 20 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,32 @@ on:
- main

jobs:
build:
runs-on: ubuntu-latest # The type of runner that the job will run on.
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
VERSION: "1.0"
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4 # Checks-out your repository under $GITHUB_WORKSPACE
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v5
with:
context: .
push: true
platforms: linux/amd64,linux/arm64,linux/arm/v7
build-args: |
PLUGINPATH=core:simple_plugin_manager:base_api:fastapi
CMD_ENTRYPOINT="run-fes --port 8888 --host 0.0.0.0"
tags: |
${{ secrets.DOCKERHUB_USERNAME }}/featureextractionserver:base-1.0
${{ secrets.DOCKERHUB_USERNAME }}/featureextractionserver:base-latest
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }} # Set in your repo's secrets
password: ${{ secrets.DOCKER_PASSWORD }} # Set in your repo's secrets

- name: Run build script
run: |
bash build_docker.sh

0 comments on commit dac1ae6

Please sign in to comment.