mirror of
https://github.com/factoriotools/factorio-docker.git
synced 2024-12-27 11:28:22 +01:00
54 lines
1.3 KiB
YAML
54 lines
1.3 KiB
YAML
name: Docker build & push
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches: master
|
|
tags:
|
|
- '*'
|
|
|
|
jobs:
|
|
old-version:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
version: [ "1.0", "0.18", "0.17", "0.16", "0.15", "0.14" ]
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
- name: build
|
|
env:
|
|
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|
|
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
|
|
VERSION_SHORT: ${{ matrix.version }}
|
|
run: |
|
|
./build.sh ${{ matrix.version }}
|
|
|
|
stable:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
- name: build
|
|
env:
|
|
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|
|
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
|
|
EXTRA_TAG: stable,latest
|
|
VERSION_SHORT: "1.1"
|
|
run: |
|
|
./build.sh $VERSION_SHORT
|
|
|
|
# experimental:
|
|
# runs-on: ubuntu-latest
|
|
# steps:
|
|
# - name: Checkout
|
|
# uses: actions/checkout@v2
|
|
# - name: build
|
|
# env:
|
|
# DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|
|
# DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
|
|
# EXTRA_TAG: latest
|
|
# VERSION_SHORT: "1.2"
|
|
# run: |
|
|
# ./build.sh $VERSION_SHORT
|