Skip to content

update version of ci files #74

update version of ci files

update version of ci files #74

# This workflow will create the docker image and deploy it to the github repository
name: yacg tests and docker build
on:
push:
branches: [ master ]
jobs:
call-workflow-test:
uses: OkieOth/yacg/.github/workflows/__tests.yml@6.2.2

Check failure on line 11 in .github/workflows/test_and_docker_build.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/test_and_docker_build.yml

Invalid workflow file

error parsing called workflow ".github/workflows/test_and_docker_build.yml" -> "OkieOth/yacg/.github/workflows/__tests.yml@6.2.2" : failed to fetch workflow: reference to workflow should be either a valid branch, tag, or commit
docker-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: build image
run: docker build -t ghcr.io/okieoth/yacg:`cat version.txt | grep -P '\d+\.\d+\.\d+'` .
- name: Login to GitHub Registry
run: echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u okieoth --password-stdin
- name: Push the Docker image
run: docker push ghcr.io/okieoth/yacg:`cat version.txt | grep -P '\d+\.\d+\.\d+'`
- name: tag images as latest
run: docker tag ghcr.io/okieoth/yacg:`cat version.txt | grep -P '\d+\.\d+\.\d+'` ghcr.io/okieoth/yacg
- name: Push the latest Docker image
run: docker push ghcr.io/okieoth/yacg