Issue 90 create api view to modify user preferences (#100) #3
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: Docker Image CI/CD | |
on: | |
push: | |
branches: | |
- 'main' | |
workflow_dispatch: | |
jobs: | |
backend: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check repository | |
uses: actions/checkout@v4 | |
- name: Get date for tagging | |
id: date | |
run: echo "date=$(date +'%Y%m%d%H%M%S')" >> $GITHUB_ENV | |
- name: Login to DockerHub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ vars.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Build and push the Docker image | |
uses: docker/build-push-action@v5 | |
with: | |
context: . | |
file: ./docker/server/Dockerfile | |
push: true | |
tags: | | |
${{ vars.DOCKERHUB_USERNAME }}/bluecrew-prod-server:latest | |
${{ vars.DOCKERHUB_USERNAME }}/bluecrew-prod-server:${{ env.date }} |