CoolFace
Apppublic

PixelPiggy/CS_float

sourceHugging Faceupdated 10mo agoView on Hugging Face
0likes
docker-publish.yml62 linesDownload Raw Back to workflows
1name: Docker2 3# This workflow uses actions that are not certified by GitHub.4# They are provided by a third-party and are governed by5# separate terms of service, privacy policy, and support6# documentation.7 8on:9  push:10    branches: [ master, beta ]11    # Publish semver tags as releases.12    tags: [ 'v*.*.*' ]13  pull_request:14    branches: [ master, beta ]15 16env:17  # Use docker.io for Docker Hub if empty18  REGISTRY: docker.io19  # github.repository as <account>/<repo>20  IMAGE_NAME: step7750/csgofloat21 22 23jobs:24  build:25 26    runs-on: ubuntu-latest27    permissions:28      contents: read29      packages: write30 31    steps:32      - name: Checkout repository33        uses: actions/checkout@v234 35      # Login against a Docker registry except on PR36      # https://github.com/docker/login-action37      - name: Log into registry ${{ env.REGISTRY }}38        if: github.event_name != 'pull_request'39        uses: docker/login-action@28218f9b04b4f3f62068d7b6ce6ca5b26e35336c40        with:41          registry: ${{ env.REGISTRY }}42          username: ${{ secrets.DOCKER_USERNAME }}43          password: ${{ secrets.DOCKER_PASSWORD }}44 45      # Extract metadata (tags, labels) for Docker46      # https://github.com/docker/metadata-action47      - name: Extract Docker metadata48        id: meta49        uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c3850        with:51          images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}52 53      # Build and push Docker image with Buildx (don't push on PR)54      # https://github.com/docker/build-push-action55      - name: Build and push Docker image56        uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc57        with:58          context: .59          push: ${{ github.event_name != 'pull_request' }}60          tags: ${{ steps.meta.outputs.tags }}61          labels: ${{ steps.meta.outputs.labels }}62