Skip to content

Commit

Permalink
fix(ci/cd): Upgrade the Github Workflow actions
Browse files Browse the repository at this point in the history
  • Loading branch information
annelhote committed Feb 7, 2024
1 parent 19e853b commit 7ddb0f5
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,25 +18,28 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 🏁 Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Get Tag
- name: 🏷️ Get tag
id: version
run: echo "tag=${GITHUB_REF#refs/heads/}" >> $GITHUB_OUTPUT

- name: Log into registry
- name: πŸ”‘ Login ghcr.io
run: docker login ghcr.io -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }}

- name: Build
uses: actions/setup-node@v3
- name: πŸ—οΈ Build app
uses: actions/setup-node@v4
with:
node-version: 18
- run: npm ci && npm run build --mode=staging

- name: πŸ‹ Build Docker image
run: docker build -t ${{ github.repository }} .
run: |
IMAGE_ID=ghcr.io/${{ github.repository }}
IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
docker build -t ${{ github.repository }} .
- name: Push image
- name: πŸ“¦ Push Docker image
run: |
IMAGE_ID=ghcr.io/${{ github.repository }}
IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
Expand All @@ -62,7 +65,7 @@ jobs:
if: always()
runs-on: ubuntu-latest
steps:
- uses: dataesr/mm-notifier-action@v1
- uses: dataesr/mm-notifier-action@v1.0.2
with:
github_token: ${{ secrets.GITHUB_TOKEN}}
mattermost_webhook_url: ${{ secrets.MATTERMOST_WEBHOOK_URL }}
Expand Down

0 comments on commit 7ddb0f5

Please sign in to comment.