Skip to content

Commit

Permalink
remove testing code
Browse files Browse the repository at this point in the history
  • Loading branch information
Nina Bernick committed Jul 26, 2024
1 parent 361f841 commit ac0c183
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions .github/workflows/build-and-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
push:
branches:
- main
- ninabernick/semver
workflow_dispatch:

jobs:
Expand Down Expand Up @@ -47,19 +46,12 @@ jobs:
release-type: simple
token: ${{ secrets.GITHUB_TOKEN }}

- name: Determine Docker tag
id: docker_tag
run: |
if [ "${{ github.ref }}" == "refs/heads/main" ]; then
echo "tag=${{ steps.release.outputs.version }}" >> $GITHUB_ENV
else
echo "tag=latest" >> $GITHUB_ENV
fi

- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: |
ghcr.io/${{ github.repository }}-test:${{ env.tag }}
ghcr.io/${{ github.repository }}:${{ steps.release.outputs.version }}
ghcr.io/${{ github.repository }}:latest

0 comments on commit ac0c183

Please sign in to comment.