Skip to content

Commit

Permalink
new ci file for staging
Browse files Browse the repository at this point in the history
  • Loading branch information
ouslan committed Feb 18, 2025
1 parent d1f25b6 commit 73b0ef1
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions .github/workflows/stage.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,25 @@
name: Staging Docker Image
name: Build Staging Docker Image

on:
push:
branches:
- 'main'
- '31-docker'

jobs:

build:

runs-on: ubuntu-latest
runs-on: self-hosted

steps:
- uses: actions/checkout@v4
with:
submodules: 'true'

- name: Log in to Docker Hub
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin

- name: Build the Docker image
run: docker build . --file Dockerfile --tag ouslan/jp-api:stage

- name: Push the Docker image
run: docker push ouslan/jp-api:stage

- name: Build and publish "latest" Docker image
uses: VaultVulp/[email protected]
with:
image-name: jp-api
dockerfile: .
image-tags: staging

0 comments on commit 73b0ef1

Please sign in to comment.