-
Notifications
You must be signed in to change notification settings - Fork 8
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
aeb5b47
commit 1ba2316
Showing
1 changed file
with
34 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,34 @@ | ||
name: Publish | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: [ main ] | ||
|
||
jobs: | ||
publish-origin-simulator: | ||
runs-on: large | ||
timeout-minutes: 30 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v1 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.PACKAGES_GITHUB_TOKEN }} | ||
|
||
- name: Build the origin-simulator docker image | ||
env: | ||
IMAGE_TAG: ${{ github.sha }} | ||
run: | | ||
# Build the image with a tag that can be referenced. | ||
docker build -f Dockerfile.1_14_alpine . -t origin-simulator-dev:latest | ||
# Tag the image with GitHub container registry | ||
docker tag origin-simulator-dev:latest ghcr.io/vizzly-co/origin-simulator-dev:$IMAGE_TAG | ||
docker tag origin-simulator-dev:latest ghcr.io/vizzly-co/origin-simulator-dev:latest | ||
# Push the image to github packages. | ||
docker push ghcr.io/vizzly-co/origin-simulator-dev --all-tags |