Skip to content

Commit

Permalink
update: gh actions
Browse files Browse the repository at this point in the history
  • Loading branch information
codekow committed Nov 4, 2023
1 parent f24b078 commit 23de7a5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/main-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

- name: Get latest tag
id: vars
run: echo ::set-output name=tag::${GITHUB_REF:10}
run: echo "tag=${GITHUB_REF:10}" >> ${GITHUB_OUTPUT}

- name: Checkout
uses: actions/checkout@v2
Expand All @@ -26,17 +26,17 @@ jobs:
id: prep
run: |
BUILD_DATE=$(date --rfc-3339=seconds --utc)
echo ::set-output name=build_date::${BUILD_DATE}
echo "build_date=${BUILD_DATE}" >> ${GITHUB_OUTPUT}
PLATFORMS=amd64,arm,arm64
TAGS1="quay.io/${{ github.repository_owner }}/tor:${{ steps.vars.outputs.tag }}"
if [ "${{github.event_name}}" == "pull_request" ]; then
echo ::set-output name=push::false
echo "push=false" >> ${GITHUB_OUTPUT}
else
echo ::set-output name=push::true
echo ::set-output name=tags1::${TAGS1}
echo ::set-output name=branch::${GIT_BRANCH}
echo "push=true" >> ${GITHUB_OUTPUT}
echo "tags1=${TAGS1}" >> ${GITHUB_OUTPUT}
echo "branch=${GIT_BRANCH}" >> ${GITHUB_OUTPUT}
fi
echo ::set-output name=platforms::${PLATFORMS}
echo "platforms=${PLATFORMS}" >> ${GITHUB_OUTPUT}
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

- name: Set latest tag
id: vars
run: echo ::set-output name=tag::latest
run: echo "tag=latest" >> ${GITHUB_OUTPUT}

- name: Checkout
uses: actions/checkout@v2
Expand All @@ -27,17 +27,17 @@ jobs:
id: prep
run: |
BUILD_DATE=$(date --rfc-3339=seconds --utc)
echo ::set-output name=build_date::${BUILD_DATE}
echo "build_date=${BUILD_DATE}" >> ${GITHUB_OUTPUT}
PLATFORMS=amd64,arm,arm64
TAGS1="quay.io/${{ github.repository_owner }}/tor:${{ steps.vars.outputs.tag }}"
if [ "${{github.event_name}}" == "pull_request" ]; then
echo ::set-output name=push::false
echo "push=false" >> ${GITHUB_OUTPUT}
else
echo ::set-output name=push::true
echo ::set-output name=tags1::${TAGS1}
echo ::set-output name=branch::${GIT_BRANCH}
echo "push=true" >> ${GITHUB_OUTPUT}
echo "tags1=${TAGS1}" >> ${GITHUB_OUTPUT}
echo "branch=${GIT_BRANCH}" >> ${GITHUB_OUTPUT}
fi
echo ::set-output name=platforms::${PLATFORMS}
echo "platforms=${PLATFORMS}" >> ${GITHUB_OUTPUT}
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
Expand Down

0 comments on commit 23de7a5

Please sign in to comment.