Skip to content

update workflow

update workflow #3

Workflow file for this run

name: Build and Push Docker Image
on:
push:
branches:
- develop
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
cache: "yarn"
- run: yarn
- run: yarn nx build blueprints
env:
CF_WEB_ANALYTICS: 6c563c1e5db141129a5fc95d5c459722
- name: Login to custom registry
uses: docker/login-action@v3
with:
registry: ${{ vars.DOCKER_REGISTRY }}
username: ${{ vars.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push
uses: docker/build-push-action@v6
with:
tags: ${{ vars.DOCKER_REGISTRY }}/factorio-blueprints:latest
push: true
context: .
file: blueprints.github.Dockerfile