add libatomic and libx11-6 (#23) #37
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docker Image CI | |
on: | |
push: | |
tags: [ "v*.*.*" ] | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
build-ets2: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Docker meta | |
id: meta | |
uses: docker/metadata-action@v4 | |
with: | |
images: | | |
lshallo/ets2-convoy-server | |
ghcr.io/lshallo/ets2-convoy-server | |
- name: Login to Docker Hub | |
uses: docker/login-action@v2 | |
if: ${{ github.ref_type == 'tag' }} | |
with: | |
username: ${{ secrets.registry_user }} | |
password: ${{ secrets.registry_password }} | |
- name: Login to Github Container Registry | |
uses: docker/login-action@v2 | |
if: ${{ github.ref_type == 'tag' }} | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: ETS2 Convoy Server | Build and Push | |
uses: docker/build-push-action@v3 | |
with: | |
push: ${{ github.ref_type == 'tag' }} | |
platforms: linux/amd64 | |
tags: ${{ steps.meta.outputs.tags }} | |
labels: ${{ steps.meta.outputs.labels }} | |
build-ats: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Docker meta | |
id: meta | |
uses: docker/metadata-action@v4 | |
with: | |
images: | | |
lshallo/ats-convoy-server | |
ghcr.io/lshallo/ats-convoy-server | |
- name: Login to Docker Hub | |
uses: docker/login-action@v2 | |
if: ${{ github.ref_type == 'tag' }} | |
with: | |
username: ${{ secrets.registry_user }} | |
password: ${{ secrets.registry_password }} | |
- name: Login to Github Container Registry | |
uses: docker/login-action@v2 | |
if: ${{ github.ref_type == 'tag' }} | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: ATS Convoy Server | Build and Push | |
uses: docker/build-push-action@v3 | |
with: | |
push: ${{ github.ref_type == 'tag' }} | |
build-args: | | |
APP_ID=2239530 | |
SAVEGAME_LOCATION=/home/steam/.local/share/American Truck Simulator/ | |
EXECUTABLE=/app/bin/linux_x64/amtrucks_server | |
DEFAULT_PACKAGES=default_packages/ats | |
platforms: linux/amd64 | |
tags: ${{ steps.meta.outputs.tags }} | |
labels: ${{ steps.meta.outputs.labels }} |