Skip to content

Update dependency eslint-plugin-import to v2.31.0 #116

Update dependency eslint-plugin-import to v2.31.0

Update dependency eslint-plugin-import to v2.31.0 #116

name: Create staging Docker image
on:
pull_request:
branches: [main]
jobs:
staging_image:
runs-on: ubuntu-20.04
if: "!contains(github.event.head_commit.message, 'ci skip:')" # If the commit contains "ci skip" this action won't run
steps:
- name: Checkout code
uses: actions/checkout@v3
# - name: Sentry Release
# uses: getsentry/[email protected]
# env:
# SENTRY_URL: ${{ secrets.SENTRY_URL }}
# SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
# SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
# SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
# with:
# environment: staging
- name: Docker meta
id: docker_meta
uses: docker/metadata-action@v3
with:
images: ghcr.io/${{ github.repository }}
flavor: |
latest=auto
tags: |
type=sha
type=ref,event=branch
type=ref,event=pr
type=raw,value=staging
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Cache Docker layers
uses: actions/cache@v2
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Build and Push Docker Image
uses: docker/build-push-action@v2
with:
build-args: |
sha=${{ github.event.pull_request.head.sha }}
environment=staging
push: true
tags: ${{ steps.docker_meta.outputs.tags }}
labels: ${{ steps.docker_meta.outputs.labels }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache