Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
sdzh-atlassian committed Dec 14, 2024
1 parent f0a70b2 commit bd09fd8
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 4 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/build-e2e-docker-image.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Build

on:
workflow_dispatch: {}
# inputs:
# image-tag:
# description: 'The image tag to use for the build'
# required: true
# default: 'latest'

jobs:

build-e2e-docker-image:

runs-on: ubuntu-latest

steps:

- uses: actions/checkout@v4

- name: Build the Docker image
run: |
docker build \
--platform linux/amd64 \
--tag ghcr.io/atlassian/atlascode-e2e:$GITHUB_SHA \
--tag ghcr.io/atlassian/atlascode-e2e:latest \
- <e2e/Dockerfile
- name: Log in to registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin

- name: Push the Docker image
run: |
docker push ghcr.io/atlassian/atlascode-e2e:$GITHUB_SHA
docker push ghcr.io/atlassian/atlascode-e2e:latest
11 changes: 8 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ jobs:
- name: Run unit tests
run: npm run test

- name: Build the extension
run: npm run extension:package

# - name: Build the extension
# run: npm run extension:package

- name: Run E2E tests
run: |
docker pull ghcr.io/atlassian/atlascode-e2e:latest
docker tag ghcr.io/atlassian/atlascode-e2e:latest atlascode-e2e
npm run e2e:docker
2 changes: 1 addition & 1 deletion e2e/scripts/in-docker
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ docker run \
--platform linux/amd64 \
-v $(pwd):/atlascode \
--user atlascode \
-it \
$([ -z "$CI" ] && echo "-it" || echo "") \
atlascode-e2e $@

0 comments on commit bd09fd8

Please sign in to comment.