Skip to content

chore(deps): update dependency esbuild to v0.21.0 #6218

chore(deps): update dependency esbuild to v0.21.0

chore(deps): update dependency esbuild to v0.21.0 #6218

Workflow file for this run

name: Docker
on: [push]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
docker:
runs-on: ubuntu-latest
outputs:
docker_tag: ${{ steps.prep.outputs.version }}
strategy:
matrix:
package:
[
{ name: 'app-api', dockerfile: './containers/generic-app/Dockerfile' },
{ name: 'web-main', dockerfile: './containers/generic-web/Dockerfile' },
{ name: 'app-mock-gameserver', dockerfile: './containers/generic-app/Dockerfile' },
{ name: 'app-connector', dockerfile: './containers/generic-app/Dockerfile' },
]
steps:
- name: Apply nf_conntrack_tcp_be_liberal kernel change
run: |
sudo sh -c "echo 1 > /proc/sys/net/netfilter/nf_conntrack_tcp_be_liberal"
- name: Checkout code
uses: actions/checkout@v3
- name: Repo metadata
id: repo
uses: actions/github-script@v3
with:
script: |
const repo = await github.repos.get(context.repo)
return repo.data
- name: Prepare
id: prep
run: |
DOCKER_IMAGE=ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}-${{ matrix.package.name }}
VERSION=noop
if [ "${{ github.event_name }}" = "schedule" ]; then
VERSION=nightly
elif [[ $GITHUB_REF == refs/tags/* ]]; then
VERSION=${GITHUB_REF#refs/tags/}
elif [[ $GITHUB_REF == refs/heads/* ]]; then
VERSION=$(echo ${GITHUB_REF#refs/heads/} | sed -r 's#/+#-#g')
if [ "${{ github.event.repository.default_branch }}" = "$VERSION" ]; then
VERSION=latest
fi
elif [[ $GITHUB_REF == refs/pull/* ]]; then
VERSION=pr-${{ github.event.number }}
fi
TAGS="${DOCKER_IMAGE}:${VERSION}"
if [[ $VERSION =~ ^v[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$ ]]; then
MINOR=${VERSION%.*}
MAJOR=${MINOR%.*}
TAGS="$TAGS,${DOCKER_IMAGE}:${MINOR},${DOCKER_IMAGE}:${MAJOR},${DOCKER_IMAGE}:latest"
fi
echo "version=${VERSION}" >> $GITHUB_OUTPUT
echo "tags=${TAGS}" >> $GITHUB_OUTPUT
echo "created=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> $GITHUB_OUTPUT
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
if: ${{ !startsWith(github.actor, 'dependabot') }}
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v4
with:
context: .
file: ${{ matrix.package.dockerfile }}
push: ${{ !startsWith(github.actor, 'dependabot') }}
tags: ${{ steps.prep.outputs.tags }}
build-args: |
PACKAGE=${{ matrix.package.name }}
node-ci:
needs: [docker]
timeout-minutes: 30
runs-on: ubicloud
strategy:
matrix:
node-version: [18.18]
steps:
- name: IPv4 Address
run: curl -sL --ipv4 ifconfig.me
- name: Deploy your SSH KEY
run: |
sudo sh -c 'echo "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDs2TYfws1GhOby1DrV7UZI25lYE5MqeojocjdPoXUm/ niek@candaele.dev" >> /home/runneradmin/.ssh/authorized_keys'
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: ./scripts/dev-init.sh
- run: npm run test:style
- name: Integration tests
run: npx zx scripts/integration-tests.mjs
env:
DOCKER_TAG: ${{ needs.docker.outputs.docker_tag }}
TEST_LOGGING_LEVEL: debug
LOGGING_LEVEL: debug
NODE_ENV: test
TRACING_ENABLED: false
GRAFANA_CLOUD_TEMPO_URL: ${{ secrets.GRAFANA_CLOUD_TEMPO_URL }}
GRAFANA_CLOUD_API_USER: ${{ secrets.GRAFANA_CLOUD_API_USER }}
GRAFANA_CLOUD_API_KEY: ${{ secrets.GRAFANA_CLOUD_API_KEY }}
- uses: actions/upload-artifact@v3
if: always()
with:
name: integrationTests
path: reports
retention-days: 30
e2e:
needs: [docker]
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18.18
- run: ./scripts/dev-init.sh
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Integration tests e2e
run: npx zx scripts/integration-tests.mjs
env:
DOCKER_TAG: ${{ needs.docker.outputs.docker_tag }}
IS_E2E: true
- uses: actions/upload-artifact@v3
if: always()
with:
name: e2e
path: reports
retention-days: 30