update version of ci files #74
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
# 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 GitHub Actions / .github/workflows/test_and_docker_build.ymlInvalid workflow file
|
||
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 | ||