Skip to content

Commit

Permalink
Fix CD
Browse files Browse the repository at this point in the history
  • Loading branch information
Antiz96 committed Aug 9, 2023
1 parent 2bf0b43 commit c894e22
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/CD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on: release

env:
REGISTRY: ghcr.io
IMAGE_NAME: ankama-launcher
IMAGE_NAME: antiz96/ankama-launcher

jobs:
Build:
Expand All @@ -22,17 +22,14 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.PUSH_CONTAINER_TOKEN }}

- name: Get repo ID (and put it in lowercase)
run: echo "REPO=${GITHUB_REPOSITORY,,}" >> $GITHUB_ENV

- name: Get latest tag (and remove the "v" prefix from it)
run: echo "TAG=$(git describe --abbrev=0 --tags | sed "s/v//g")" >> $GITHUB_OUTPUT
id: version

- name: Build container
run: docker build -t ${{ env.IMAGE_NAME}}:latest -t ${{ env.IMAGE_NAME}}:${{ steps.version.outputs.TAG }} .
run: docker build -t ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest -t ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.version.outputs.TAG }} .

- name: Push container
run: |
docker push ${{ env.REGISTRY }}/${{ env.REPO }}:latest
docker push ${{ env.REGISTRY }}/${{ env.REPO }}:${{ steps.version.outputs.TAG }}
docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.version.outputs.TAG }}

0 comments on commit c894e22

Please sign in to comment.