Skip to content

Update docker-image.yml #5

Update docker-image.yml

Update docker-image.yml #5

Workflow file for this run

name: Docker Image CI
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build the backend Docker image and push
uses: mr-smithers-excellent/docker-build-push@v6
with:
image: openpro-backend
registry: ghcr.io
dockerfile: backend/Dockerfile
addLatest: true
addTimestamp: true
username: ${{ secrets.GHCR_USERNAME }}
password: ${{ secrets.GHCR_TOKEN }}
- name: Build the frontend Docker image and push
uses: mr-smithers-excellent/docker-build-push@v6
with:
image: openpro-frontend
registry: ghcr.io
dockerfile: frontend/Dockerfile
addLatest: true
addTimestamp: true
username: ${{ secrets.GHCR_USERNAME }}
password: ${{ secrets.GHCR_TOKEN }}
addTimestamp: true

Check failure on line 39 in .github/workflows/docker-image.yml

View workflow run for this annotation

GitHub Actions / Docker Image CI

Invalid workflow file

The workflow is not valid. .github/workflows/docker-image.yml (Line: 39, Col: 9): 'addTimestamp' is already defined .github/workflows/docker-image.yml (Line: 40, Col: 9): 'username' is already defined
username: ${{ secrets.GHCR_USERNAME }}
password: ${{ secrets.GHCR_TOKEN }}