factorio-docker/.github/workflows/docker.yml

54 lines
1.3 KiB
YAML
Raw Normal View History

2021-01-26 19:43:14 +01:00
name: Docker build & push
on:
pull_request:
push:
branches: master
2021-01-27 23:46:30 +01:00
tags:
- '*'
2021-01-26 19:43:14 +01:00
jobs:
old-version:
runs-on: ubuntu-latest
strategy:
matrix:
2021-01-27 23:39:56 +01:00
version: [ "1.0", "0.18", "0.17", "0.16", "0.15", "0.14" ]
2021-01-26 19:43:14 +01:00
steps:
- name: Checkout
uses: actions/checkout@v2
- name: build
env:
2021-01-26 19:57:15 +01:00
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
2021-01-26 19:43:14 +01:00
VERSION_SHORT: ${{ matrix.version }}
run: |
./build.sh ${{ matrix.version }}
stable:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: build
env:
2021-01-26 19:57:15 +01:00
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
2021-01-27 23:39:56 +01:00
EXTRA_TAG: stable,latest
2021-01-27 23:51:37 +01:00
VERSION_SHORT: "1.1"
2021-01-26 19:43:14 +01:00
run: |
./build.sh $VERSION_SHORT
2021-01-27 23:39:56 +01:00
# 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
2021-01-27 23:51:37 +01:00
# VERSION_SHORT: "1.2"
2021-01-27 23:39:56 +01:00
# run: |
# ./build.sh $VERSION_SHORT