Skip to content

Commit

Permalink
push branch tag on test success
Browse files Browse the repository at this point in the history
  • Loading branch information
EmmaLRussell committed Aug 10, 2024
1 parent 07042a4 commit 92eea07
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/docker-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
pull_request:
branches:
- '*'
env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
jobs:
test-and-push:
timeout-minutes: 60
Expand Down Expand Up @@ -42,5 +44,5 @@ jobs:
name: playwright-report
path: playwright-report/
retention-days: 30

# TODO: push docker branch tag on e2e test success
- name: Push branch tag
run: ./docker/push-branch-tag
6 changes: 6 additions & 0 deletions docker/push-branch-tag
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env bash
set -e
HERE=$(dirname $0)
. $HERE/common

docker tag "$APP_TAG_SHA" "$APP_TAG_BRANCH"

0 comments on commit 92eea07

Please sign in to comment.