pstream is dead; long live pstream taciturnaxolotl.github.io/pstream-ng/
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #722 from sweenu/dev

Push Docker image to registry after release

authored by

William Oldham and committed by
GitHub
04906f1f 9e61ec27

+50 -1
+49
.github/workflows/deploying.yml
··· 127 127 asset_path: ./movie-web.zip 128 128 asset_name: movie-web.zip 129 129 asset_content_type: application/zip 130 + 131 + registry: 132 + name: Push to registry 133 + runs-on: ubuntu-latest 134 + permissions: 135 + contents: read 136 + packages: write 137 + id-token: write 138 + 139 + env: 140 + REGISTRY: ghcr.io 141 + IMAGE_NAME: ${{ github.repository }} 142 + 143 + steps: 144 + - name: Checkout repository 145 + uses: actions/checkout@v3 146 + 147 + - name: Setup Docker buildx 148 + uses: docker/setup-buildx-action@v2 149 + 150 + - name: Get version 151 + id: package-version 152 + uses: martinbeentjes/npm-get-version-action@main 153 + 154 + - name: Log into registry ${{ env.REGISTRY }} 155 + uses: docker/login-action@v2 156 + with: 157 + registry: ${{ env.REGISTRY }} 158 + username: ${{ github.actor }} 159 + password: ${{ secrets.GITHUB_TOKEN }} 160 + 161 + - name: Extract Docker metadata 162 + id: meta 163 + uses: docker/metadata-action@v4 164 + with: 165 + images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} 166 + flavor: | 167 + latest=auto 168 + tags: | 169 + type=semver,pattern={{version}},value=v${{ steps.package-version.outputs.current-version }} 170 + 171 + - name: Build and push Docker image 172 + id: build-and-push 173 + uses: docker/build-push-action@v4 174 + with: 175 + push: true 176 + context: . 177 + labels: ${{ steps.meta.outputs.labels }} 178 + tags: ${{ steps.meta.outputs.tags }}
+1 -1
dockerfile
··· 13 13 14 14 # production environment 15 15 FROM nginx:stable-alpine 16 - COPY --from=build /app/build /usr/share/nginx/html 16 + COPY --from=build /app/dist /usr/share/nginx/html 17 17 EXPOSE 80 18 18 CMD ["nginx", "-g", "daemon off;"]