Skip to content

Commit

Permalink
Modify docker container environment in actions
Browse files Browse the repository at this point in the history
  • Loading branch information
adisidev committed Oct 18, 2024
1 parent fb56747 commit 3f2aadd
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ on:
push:
branches: [ "main", "pr/adisidev/201" ]

env:
BUILD_TYPE: Release

jobs:
build-and-release:

runs-on: ubuntu-latest
container:
image: gocartio/cartogram-web:latest
env:
BUILD_TYPE: Release
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

steps:

Expand Down Expand Up @@ -57,13 +57,13 @@ jobs:
- name: Generate and Push Tag
id: generate_tag
run: |
pwd
ls -la
# Configure git committer
git config user.email "[email protected]"
git config user.name "GitHub Action"
pwd
ls -la
# Get the current date
current_date=$(date +'%Y-%m-%d')
Expand All @@ -77,14 +77,10 @@ jobs:
git push origin "${short_sha}"
echo "new_tag=${short_sha}" >> $GITHUB_OUTPUT
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ steps.generate_tag.outputs.new_tag }}
files: build/bin/cartogram
body: "Rolling release ${{ steps.generate_tag.outputs.release_number }}"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
body: "Rolling release ${{ steps.generate_tag.outputs.release_number }}"

0 comments on commit 3f2aadd

Please sign in to comment.