Make API Container #17
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: Make API Container | |
on: | |
workflow_dispatch: | |
branches: [ main ] | |
release: | |
types: [ "published" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
# Extract tag name | |
- name: Extract tag name | |
id: tag_name | |
run: echo "##[set-output name=tag;]$(echo ${GITHUB_REF#refs/tags/})" | |
shell: bash | |
- name: Build and push Docker images | |
uses: docker/build-push-action@v2 # Updated to v2 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
repository: dustinupdyke/ghosts | |
tags: dustinupdyke/ghosts:${{ steps.tag_name.outputs.tag }} | |
push: true | |
context: src | |
file: src/Dockerfile-api | |
buildcmusei: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
# Extract tag name | |
- name: Extract tag name | |
id: tag_name | |
run: echo "##[set-output name=tag;]$(echo ${GITHUB_REF#refs/tags/})" | |
shell: bash | |
- name: Build and push Docker images | |
uses: docker/build-push-action@v2 # Updated to v2 | |
with: | |
username: ${{ secrets.BOT_USERNAME }} | |
password: ${{ secrets.BOT_PASSWORD }} | |
repository: cmusei/ghosts | |
tags: cmusei/ghosts:${{ steps.tag_name.outputs.tag }} | |
push: true | |
context: src | |
file: src/Dockerfile-api |