Skip to content

Commit

Permalink
fix(pipeline): revert pipe
Browse files Browse the repository at this point in the history
  • Loading branch information
RouHim committed Nov 12, 2022
1 parent 4413fcc commit cf402b7
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions .github/workflows/build-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,10 @@ on:

env:
IMAGE_NAME: rouhim/this-week-in-past
IMAGE_TAG: latest

jobs:

set-image_tag:
name: Set container image tag
runs-on: ubuntu-latest
steps:
- name: Set image tag global
run: |
GIT_BRANCH=${GITHUB_BASE_REF:-${GITHUB_REF#refs/heads/}}
if [ $GIT_BRANCH = "main" ]; then export TAG=latest; else export TAG=next; fi
echo "Current branch: GIT_BRANCH=$GIT_BRANCH leads to the container image tag: $TAG"
echo "IMAGE_TAG=$TAG" >> $GITHUB_ENV
check-oci-config:
name: Check Containerfile
runs-on: ubuntu-latest
Expand Down

0 comments on commit cf402b7

Please sign in to comment.