Merge pull request #9 from Silex/docker #1
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: Build and Push Docker Image | ||
on: | ||
push: | ||
branches: | ||
- main | ||
tags: | ||
- '*' | ||
jobs: | ||
build-and-push: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@main | ||
- name: Log in to Docker Hub | ||
uses: docker/login-action@master | ||
with: | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
- name: Build and Push Docker Image | ||
uses: docker/build-push-action@master | ||
with: | ||
context: . | ||
push: true | ||
tags: | | ||
Check failure on line 29 in .github/workflows/image.yml GitHub Actions / Build and Push Docker ImageInvalid workflow file
|
||
${{ secrets.DOCKER_USERNAME }}/quasascale-backend:${{ github.ref_name }} | ||
${{ secrets.DOCKER_USERNAME }}/quasascale-backend:${{ github.ref_name | replace('v', '') }} |