Update docker-image.yml #4
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: Docker Image CI | ||
on: | ||
push: | ||
tags: | ||
- '*' | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name : dockerhub login | ||
env : | ||
DOCKER_USER: ${{dockerhub.DOCKERHUB_USERNAME}} | ||
Check failure on line 18 in .github/workflows/docker-image.yml GitHub Actions / Docker Image CIInvalid workflow file
Check failure on line 18 in .github/workflows/docker-image.yml GitHub Actions / Docker Image CIInvalid workflow file
|
||
DOCKER_PASSWORD: ${{dockerhub.DOCKERHUB_PASSWORD}} | ||
run: docker login -u $DOCKER_USER -p $DOCKER_PASSWORD | ||
- name: Build the Docker image | ||
run: | | ||
docker build . --file Dockerfile --tag inraep2m2/sbml2rdf:${{ github.ref_name }} | ||
docker build . --file Dockerfile --tag inraep2m2/sbml2rdf:latest | ||
- name : Docker Push | ||
run: | | ||
docker push inraep2m2/sbml2rdf:${{ github.ref_name }} | ||
docker push inraep2m2/sbml2rdf:latest |