Skip to content

Commit

Permalink
trying a new way to tag the images
Browse files Browse the repository at this point in the history
  • Loading branch information
freyamade committed Dec 5, 2023
1 parent bb05241 commit 6fce450
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,13 @@ jobs:

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:$(echo "$GITHUB_REF" | sed 's/refs\/tags\///')
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
Expand All @@ -29,8 +34,13 @@ jobs:

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:$(echo "$GITHUB_REF" | sed 's/refs\/tags\///')
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
Expand All @@ -44,8 +54,13 @@ jobs:

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:$(echo "$GITHUB_REF" | sed 's/refs\/tags\///')
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
Expand Down

0 comments on commit 6fce450

Please sign in to comment.