-
Notifications
You must be signed in to change notification settings - Fork 6
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 bd09fd8
Showing
3 changed files
with
44 additions
and
4 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,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 |
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
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