mirror of
https://github.com/JustArchiNET/ArchiSteamFarm
synced 2024-11-10 15:14:41 +00:00
e5efb86bd2
* Initial commit trying to get ghcr running * Move to v2 * Add lowercasing * Replace docker hub worker * Update * Attempt to solve .net limitations * Correct platforms * Update docker-publish-master.yml * Add remaining docker tags * Add automatic DockerHub repo description update
49 lines
1.5 KiB
YAML
49 lines
1.5 KiB
YAML
name: ASF-docker-publish-released
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- '*'
|
|
|
|
env:
|
|
TAG: released
|
|
|
|
jobs:
|
|
main:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v1
|
|
|
|
- name: Login to ghcr.io
|
|
uses: docker/login-action@v1
|
|
with:
|
|
registry: ghcr.io
|
|
username: ${{ github.repository_owner }}
|
|
password: ${{ secrets.GH_PACKAGES_PAT }}
|
|
|
|
- name: Login to DockerHub
|
|
uses: docker/login-action@v1
|
|
with:
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
|
|
- name: Prepare environment outputs
|
|
shell: sh
|
|
run: |
|
|
echo "FIXED_TAG=$(echo ${{ github.ref }} | cut -d '/' -f 3" >> "$GITHUB_ENV"
|
|
echo "GHCR_REPOSITORY=$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]')" >> "$GITHUB_ENV"
|
|
echo "DH_REPOSITORY=$(echo ${{ secrets.DOCKERHUB_USERNAME }}/${{ github.event.repository.name }} | tr '[:upper:]' '[:lower:]')" >> "$GITHUB_ENV"
|
|
|
|
- name: Build and push Docker image
|
|
uses: docker/build-push-action@v2
|
|
with:
|
|
platforms: linux/amd64,linux/arm,linux/arm64
|
|
build-args: STEAM_TOKEN_DUMPER_TOKEN=${{ secrets.STEAM_TOKEN_DUMPER_TOKEN }}
|
|
tags: |
|
|
ghcr.io/${{ env.GHCR_REPOSITORY }}:${{ env.TAG }}
|
|
ghcr.io/${{ env.GHCR_REPOSITORY }}:${{ env.FIXED_TAG }}
|
|
${{ env.DH_REPOSITORY }}:${{ env.TAG }}
|
|
${{ env.DH_REPOSITORY }}:${{ env.FIXED_TAG }}
|
|
push: true
|