Skip to content

Commit

Permalink
Merge pull request #43 from SADiLaR/docker_push_from_master
Browse files Browse the repository at this point in the history
Create docker push action for main branch
  • Loading branch information
jrb-s2c-github authored May 7, 2024
2 parents 49b764e + cfb9cd7 commit a09491f
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml → .github/workflows/develop.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# https://docs.docker.com/build/ci/github-actions/push-multi-registries/
name: docker_push
name: docker_push_deploy_test

on:
workflow_dispatch:
Expand All @@ -8,7 +8,7 @@ on:
- "develop"

jobs:
docker:
deploy_test:
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/production.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# https://docs.docker.com/build/ci/github-actions/push-multi-registries/
name: docker_push_prod

on:
push:
tags:
- v**

jobs:
docker_push:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to SADiLaR Container Registry
uses: docker/login-action@v3
with:
registry: docker.sadilar.org
username: ${{ vars.SADILAR_DOCKER_REPOSITORY_USER }}
password: ${{ secrets.SADILAR_DOCKER_REPOSITORY_SECRET }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64
push: true
tags: |
docker.sadilar.org/term_platform:${{ github.ref_name }}

0 comments on commit a09491f

Please sign in to comment.