Skip to content

Commit

Permalink
OS publish
Browse files Browse the repository at this point in the history
  • Loading branch information
james-bowers committed Jul 12, 2024
1 parent aeb5b47 commit 1ba2316
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/publish.yml
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

0 comments on commit 1ba2316

Please sign in to comment.