unbreak the workflows

This commit is contained in:
Oliver Gorwits
2023-02-21 11:45:19 +00:00
parent 147ac20016
commit 50f5cf9252

View File

@@ -42,12 +42,13 @@ jobs:
- name: Get the Tag or Branch - name: Get the Tag or Branch
run: echo "GH_REF_SHORT=$(echo ${GITHUB_REF##*/})" >> $GITHUB_ENV run: echo "GH_REF_SHORT=$(echo ${GITHUB_REF##*/})" >> $GITHUB_ENV
- name: Install packages - name: Install base packages
run: | run: apk add tmux bash curl sudo xz
apk del openssh-client - name: Install other packages
apk add openssh xz tmux bash curl sudo gcc make musl-dev perl-dev unzip run: apk add openssh-client gcc make musl-dev perl-dev unzip
- name: Install fake apt-get - name: Install fake apt-get
run: echo 'if [ "$1" == "update" ]; then exec apk update; else exec apk add openssh xz; fi' > /usr/local/bin/apt-get && chmod +x /usr/local/bin/apt-get run: echo 'if [ "$1" == "update" ]; then exec apk update; else exec apk add openssh-client xz; fi' > /usr/local/bin/apt-get && chmod +x /usr/local/bin/apt-get
- name: Add localhost - name: Add localhost
run: echo "127.0.0.1 localhost" >> /etc/hosts run: echo "127.0.0.1 localhost" >> /etc/hosts
@@ -318,14 +319,16 @@ jobs:
run: run:
working-directory: /github/workspace/netdisco/netdisco working-directory: /github/workspace/netdisco/netdisco
steps: steps:
- name: Install base packages
run: apk add tmux bash curl sudo xz
- name: Install packages - name: Install packages
run: | run: apk add openssh-client gcc make musl-dev perl-dev unzip
apk del openssh-client
apk add openssh xz tmux bash curl sudo gcc make musl-dev perl-dev unzip
- name: Install fake apt-get - name: Install fake apt-get
run: echo 'if [ "$1" == "update" ]; then exec apk update; else exec apk add openssh xz; fi' > /usr/local/bin/apt-get && chmod +x /usr/local/bin/apt-get run: echo 'if [ "$1" == "update" ]; then exec apk update; else exec apk add openssh-client xz; fi' > /usr/local/bin/apt-get && chmod +x /usr/local/bin/apt-get
- name: Check out latest code - name: Check out latest code
uses: actions/checkout@v1 uses: actions/checkout@v1
- name: Fix owner of checkout - name: Fix owner of checkout
run: chown -R netdisco:netdisco /github/workspace/netdisco/netdisco run: chown -R netdisco:netdisco /github/workspace/netdisco/netdisco