Skip to content

Commit

Permalink
Update build_development.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mamico authored Nov 28, 2023
1 parent 39a8bf2 commit 11a8863
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/build_development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,19 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}

- name: Get the image id
id: get_image_id
run: |
IMAGE_ID=$(echo ghcr.io/${{ github.repository }} | tr '[A-Z]' '[a-z]')
echo ::set-output name=IMAGE_ID::$IMAGE_ID
echo "IMAGE_ID=$IMAGE_ID" >> "$GITHUB_ENV"
- name: Extract branch name
shell: bash
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
id: extract_branch
run: echo "IMAGE_BRANCH=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> "$GITHUB_ENV"

- name: Build and push container image
uses: docker/build-push-action@v3
with:
context: .
file: ./Dockerfile.development
push: true
tags: ${{ steps.get_image_id.outputs.IMAGE_ID }}:${{ steps.extract_branch.outputs.branch }}_development
tags: ${{ env.IMAGE_ID}}:${{ env.IMAGE_BRANCH }}_development
platforms: linux/amd64,linux/arm64

0 comments on commit 11a8863

Please sign in to comment.