-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f0a70b2
commit 60f4a09
Showing
1 changed file
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Build | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'AXON-37-**' | ||
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 |