Merge pull request #779 from ITfoxtec/1.4.x-development #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci_main_docker | |
on: | |
push: | |
branches: | |
- "docker_dev" | |
jobs: | |
build: | |
name: Build Docker image | |
runs-on: ubuntu-latest | |
steps: | |
- | |
name: Checkout | |
uses: actions/checkout@v4 | |
- | |
uses: kzrnm/get-net-sdk-project-versions-action@v2 | |
id: get-version | |
with: | |
proj-path: src/FoxIDs/FoxIDs.csproj | |
- | |
name: Docker meta | |
id: meta-f | |
uses: docker/metadata-action@v5 | |
with: | |
images: ${{ secrets.DOCKERHUB_USERNAME }}/foxids | |
tags: | | |
type=raw,value=${{ steps.get-version.outputs.version }} | |
type=raw,value=latest,enable=true | |
- | |
name: Docker meta | |
id: meta-fc | |
uses: docker/metadata-action@v5 | |
with: | |
images: ${{ secrets.DOCKERHUB_USERNAME }}/foxids-control | |
tags: | | |
type=raw,value=${{ steps.get-version.outputs.version }} | |
type=raw,value=latest,enable=true | |
- | |
name: Login to Docker Hub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- | |
name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- | |
name: Build and push FoxIDs | |
uses: docker/build-push-action@v5 | |
with: | |
context: . | |
file: ./src/FoxIDs/Dockerfile | |
platforms: linux/amd64 | |
push: true | |
tags: ${{ steps.meta-f.outputs.tags }} | |
labels: ${{ steps.meta-f.outputs.labels }} | |
- | |
name: Build and push FoxIDs.Control | |
uses: docker/build-push-action@v5 | |
with: | |
context: . | |
file: ./src/FoxIDs.Control/Dockerfile | |
platforms: linux/amd64 | |
push: true | |
tags: ${{ steps.meta-fc.outputs.tags }} | |
labels: ${{ steps.meta-fc.outputs.labels }} |