Remove dev image from gha #2
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build and Push Crawlee Images on Tag | |
| on: | |
| push: | |
| tags: | |
| - '*' | |
| jobs: | |
| build-and-push-prod: | |
| name: Build and Push Crawlee Image | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Set image tag | |
| id: set-tag | |
| run: | | |
| GIT_TAG=${GITHUB_REF#refs/tags/} | |
| IMAGE_TAG="${GIT_TAG}" | |
| echo "IMAGE_TAG=${IMAGE_TAG}" >> $GITHUB_ENV | |
| echo "image_tag=${IMAGE_TAG}" >> $GITHUB_OUTPUT | |
| - name: Login to docker registry | |
| uses: docker/login-action@v4 | |
| with: | |
| registry: docker-registry.osc.edu | |
| username: ${{ secrets.OSC_REGISTRY_ROBOT_OSC_USERNAME }} | |
| password: ${{ secrets.OSC_REGISTRY_ROBOT_OSC_TOKEN }} | |
| - name: Docker Build and Push | |
| uses: docker/build-push-action@v7 | |
| with: | |
| context: . | |
| push: true | |
| tags: docker-registry.osc.edu/osc/crawlee:${{ env.IMAGE_TAG }} |