Skip to content

Commit

Permalink
static freyja version (#860)
Browse files Browse the repository at this point in the history
  • Loading branch information
erinyoung authored Feb 5, 2024
1 parent 4dd915a commit bdc1785
Showing 1 changed file with 20 additions and 9 deletions.
29 changes: 20 additions & 9 deletions .github/workflows/update_freyja.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,29 @@ jobs:

- name: pull repo
uses: actions/checkout@v3

- name: get latest version of freyja in docker-builds repo

# Keeping here in case we want to figure out why this doesn't work
# - name: get latest version of freyja in docker-builds repo
# id: latest_version
# run: |
# file=$(git log -1 --name-only --format=%cd --date=iso freyja/*/Dockerfile | grep Dockerfile | head -n 1 )
# echo "the latest file is $file"
# echo "file=$file" >> $GITHUB_OUTPUT
#
# version=$(echo $file | cut -f 2 -d "/" | cut -f 1 -d "_")
# echo "the latest version is $version"
# echo "version=$version" >> $GITHUB_OUTPUT

- name: set freyja version
id: latest_version
run: |
file=$(git log -1 --name-only --format=%cd --date=iso freyja/*/Dockerfile | grep Dockerfile | head -n 1 )
echo "the latest file is $file"
run: |
version=1.4.8
echo "version=$version" >> $GITHUB_OUTPUT
file=freyja/$version/Dockerfile
ls $file
echo "file=$file" >> $GITHUB_OUTPUT
version=$(echo $file | cut -f 2 -d "/" | cut -f 1 -d "_")
echo "the latest version is $version"
echo "version=$version" >> $GITHUB_OUTPUT
- name: set up docker buildx
id: buildx
uses: docker/setup-buildx-action@v2
Expand Down

0 comments on commit bdc1785

Please sign in to comment.