20240730 #59
Workflow file for this run
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: | |
release: | |
types: | |
- published | |
jobs: | |
build-backend: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: backend | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Get Release Info | |
id: get_release | |
uses: bruceadams/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
- name: Build the Docker image | |
run: docker build . --file deployment/Dockerfile -t ghcr.io/savageaim/app/backend:latest -t ghcr.io/savageaim/app/backend:${{ steps.get_release.outputs.tag_name }} | |
- name: Login to GitHub Docker Registry | |
run: docker login ghcr.io -u freyamade -p ${{ secrets.GITHUB_TOKEN }} | |
- name: Push the Docker image | |
run: docker push --all-tags ghcr.io/savageaim/app/backend | |
build-ws-backend: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: backend | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Get Release Info | |
id: get_release | |
uses: bruceadams/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
- name: Build the Docker image | |
run: docker build . --file deployment/ws.Dockerfile -t ghcr.io/savageaim/app/ws-backend:latest -t ghcr.io/savageaim/app/ws-backend:${{ steps.get_release.outputs.tag_name }} | |
- name: Login to GitHub Docker Registry | |
run: docker login ghcr.io -u freyamade -p ${{ secrets.GITHUB_TOKEN }} | |
- name: Push the Docker image | |
run: docker push --all-tags ghcr.io/savageaim/app/ws-backend | |
build-frontend: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: frontend | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Get Release Info | |
id: get_release | |
uses: bruceadams/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
- name: Build the Docker image | |
run: docker build . --file deployment/Dockerfile --tag ghcr.io/savageaim/app/frontend:latest -t ghcr.io/savageaim/app/frontend:${{ steps.get_release.outputs.tag_name }} | |
- name: Build maintenance image | |
run: docker build . --file deployment/Dockerfile --build-arg VUE_APP_MAINTENANCE="1" --tag ghcr.io/savageaim/app/frontend:maint | |
- name: Login to GitHub Docker Registry | |
run: docker login ghcr.io -u freyamade -p ${{ secrets.GITHUB_TOKEN }} | |
- name: Push the Docker image | |
run: docker push --all-tags ghcr.io/savageaim/app/frontend |