Skip to content

Commit

Permalink
Merge pull request #1645 from AgID/develop
Browse files Browse the repository at this point in the history
Enable image build in workflow
  • Loading branch information
pdavide authored Jan 28, 2023
2 parents eed9452 + 2062e9c commit c6e8611
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,31 +14,31 @@ jobs:
environment: PublicPlayground
runs-on: ubuntu-latest
steps:
- name: Workflow disabled
- name: Set release image tag
run: echo "RELEASE_TAG=$(echo ${{ github.ref }} | cut -c11-)" >> $GITHUB_ENV
- name: Checkout code
uses: actions/checkout@v2
- name: Prepare files
if: success()
run: cp ${{ github.workspace }}/containers/queue-worker/supervisord.conf ${{ github.workspace }}
- name: Build image
if: success()
run: docker build --no-cache --rm -f ${{ github.workspace }}/Dockerfile.portal --build-arg PHP_VERSION=$PHP_VERSION -t $ORGANIZATION/$IMAGE_NAME:$IMAGE_TAG ${{ github.workspace }}
- name: Apply release tag
if: success()
run: docker tag $ORGANIZATION/$IMAGE_NAME:$IMAGE_TAG $ORGANIZATION/$IMAGE_NAME:$RELEASE_TAG
- name: Push image
if: success()
run: |
echo "Workflow disabled"
# - name: Set release image tag
# run: echo "RELEASE_TAG=$(echo ${{ github.ref }} | cut -c11-)" >> $GITHUB_ENV
# - name: Checkout code
# uses: actions/checkout@v2
# - name: Prepare files
# if: success()
# run: cp ${{ github.workspace }}/containers/queue-worker/supervisord.conf ${{ github.workspace }}
# - name: Build image
# if: success()
# run: docker build --no-cache --rm -f ${{ github.workspace }}/Dockerfile.portal --build-arg PHP_VERSION=$PHP_VERSION -t $ORGANIZATION/$IMAGE_NAME:$IMAGE_TAG ${{ github.workspace }}
# - name: Apply release tag
# if: success()
# run: docker tag $ORGANIZATION/$IMAGE_NAME:$IMAGE_TAG $ORGANIZATION/$IMAGE_NAME:$RELEASE_TAG
# - name: Push image
# if: success()
# run: |
# echo ${{ secrets.DOCKER_HUB_TOKEN }} | docker login --username ${{ secrets.DOCKER_HUB_USERNAME }} --password-stdin
# docker push $ORGANIZATION/$IMAGE_NAME:$RELEASE_TAG
# docker push $ORGANIZATION/$IMAGE_NAME:$IMAGE_TAG
# - name: Docker logout
# if: always()
# run: docker logout
echo ${{ secrets.DOCKER_HUB_TOKEN }} | docker login --username ${{ secrets.DOCKER_HUB_USERNAME }} --password-stdin
docker push $ORGANIZATION/$IMAGE_NAME:$RELEASE_TAG
docker push $ORGANIZATION/$IMAGE_NAME:$IMAGE_TAG
- name: Docker logout
if: always()
run: docker logout
- name: Deploy to public playground environment disabled
run: |
echo "Deploy to public playground environment disabled"
# - name: Get portal container index in its deployment
# if: success()
# run: |
Expand Down

0 comments on commit c6e8611

Please sign in to comment.