Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sei-dupdyke authored Jan 12, 2024
1 parent 89f347c commit fc1a638
Showing 1 changed file with 26 additions and 11 deletions.
37 changes: 26 additions & 11 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI
name: Make API Container

on:
release:
Expand All @@ -9,27 +9,42 @@ jobs:
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@v1.1.0
uses: docker/build-push-action@v2 # Updated to v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: dustinupdyke/ghosts
tag_with_ref: true
push: ${{ startsWith(github.ref, 'refs/tags/') }}
path: src
dockerfile: src/Dockerfile-api
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@v1.1.0
uses: docker/build-push-action@v2 # Updated to v2
with:
username: ${{ secrets.BOT_USERNAME }}
password: ${{ secrets.BOT_PASSWORD }}
repository: cmusei/ghosts
tag_with_ref: true
push: ${{ startsWith(github.ref, 'refs/tags/') }}
path: src
dockerfile: src/Dockerfile-api
tags: cmusei/ghosts:${{ steps.tag_name.outputs.tag }}
push: true
context: src
file: src/Dockerfile-api

0 comments on commit fc1a638

Please sign in to comment.