forked from etlegacy/etlegacy
-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (24 loc) · 967 Bytes
/
lnx-build-machine.yml
File metadata and controls
29 lines (24 loc) · 967 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# 2024 Legacy team
name: LinuxBuildMachine
on:
push:
paths:
- "misc/docker/build.Dockerfile"
workflow_dispatch:
jobs:
docker:
runs-on: ubuntu-22.04
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- name: Login to DockerHub Registry
run: echo ${{ secrets.DOCKERHUB_PASSWORD }} | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin
- name: Get the version
id: vars
run: |
echo "tag=$(date +%Y%m%d%H%M%S)" >> "$GITHUB_OUTPUT"
- name: Build and push the latest Docker image
run: |
docker build misc/docker --file misc/docker/build.Dockerfile --tag etlegacy/lnx-build:latest --tag etlegacy/lnx-build:${{steps.vars.outputs.tag}}
docker push etlegacy/lnx-build:${{steps.vars.outputs.tag}}
docker push etlegacy/lnx-build:latest