mirror of
https://github.com/sartography/cr-connect-workflow.git
synced 2025-02-24 21:58:32 +00:00
build image from dev
This commit is contained in:
parent
3d0d3fea11
commit
24c7990830
@ -1,10 +1,10 @@
|
||||
name: build_test_image
|
||||
name: build_image_from_dev
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: ['testing']
|
||||
branches: [ 'dev' ]
|
||||
pull_request:
|
||||
branches: [ 'testing' ]
|
||||
branches: [ 'dev' ]
|
||||
# Allows you to run this workflow manually from the Actions tab
|
||||
workflow_dispatch:
|
||||
|
||||
@ -70,7 +70,6 @@ jobs:
|
||||
- run_tests
|
||||
- sonarcloud
|
||||
runs-on: ubuntu-latest
|
||||
if: github.ref == 'refs/heads/testing'
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
@ -87,13 +86,12 @@ jobs:
|
||||
registry: ${{ env.REGISTRY }}
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
branch: testing
|
||||
|
||||
- name: Extract metadata (tags, labels) for Docker
|
||||
id: meta
|
||||
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
|
||||
with:
|
||||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:testing
|
||||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
||||
|
||||
- name: Build and push Docker image
|
||||
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
|
Loading…
x
Reference in New Issue
Block a user