diff --git a/.github/workflows/stage.yml b/.github/workflows/stage.yml index 7ee8dbd..2e5e361 100644 --- a/.github/workflows/stage.yml +++ b/.github/workflows/stage.yml @@ -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/gp-docker-action@1.6.0 + with: + image-name: jp-api + dockerfile: . + image-tags: staging