graphQL integration testing #127
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: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
env: | |
DOCKER_USER: ${{secrets.DOCKER_USER}} | |
DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD}} | |
REPO_NAME: ${{secrets.REPO_NAME}} | |
jobs: | |
build: | |
permissions: write-all | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Log in to Docker.io | |
run: docker login -u $DOCKER_USER -p $DOCKER_PASSWORD | |
- name: Bump version and push tag | |
id: tag_version | |
uses: mathieudutour/github-tag-action@v6.1 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
tag_prefix: '' | |
- name: Build Docker image | |
run: docker build . --file Dockerfile --tag $DOCKER_USER/$REPO_NAME:${{ steps.tag_version.outputs.new_tag }} | |
- name: Push image to Docker.io | |
run: docker push $DOCKER_USER/$REPO_NAME:${{ steps.tag_version.outputs.new_tag }} |