-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Publish automatically in GitHub Actions
- Loading branch information
Showing
3 changed files
with
37 additions
and
2 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 and publish container images | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build-push-images: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Log in to GitHub Container Registry | ||
uses: redhat-actions/podman-login@v1 | ||
with: | ||
username: ${{ github.actor }} | ||
password: ${{ github.token }} | ||
# TODO use {{ github.repository_owner }} when https://github.com/redhat-actions/podman-login/issues/44 is fixed | ||
registry: ghcr.io/seagl | ||
|
||
- name: Checkout Repo | ||
uses: actions/checkout@v1 | ||
|
||
- name: Build container images | ||
# Truly the reason this is Podman and not Docker is because I copied this workflow from a RHEL container stack repo and like | ||
# #lazy | ||
run: podman build --format docker -t synapse-dev-env ${{ matrix.version }} | ||
|
||
- name: Push container images | ||
if: github.ref == 'refs/heads/main' && github.event_name == 'push' | ||
uses: redhat-actions/push-to-registry@v2 | ||
with: | ||
image: synapse-dev | ||
registry: ghcr.io/seagl |
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